summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAmit Shah2009-11-27 21:50:49 +0100
committerBenjamin Herrenschmidt2009-12-08 06:02:49 +0100
commitc0cefebc0b6ae1bc4c92672223a54e1ee96ea7f0 (patch)
treee3f8cdf1c77e593a015ce3b469974d9df5cddb1c
parentpowerpc/windfarm: Add detection for second cpu pump (diff)
downloadkernel-qcow2-linux-c0cefebc0b6ae1bc4c92672223a54e1ee96ea7f0.tar.gz
kernel-qcow2-linux-c0cefebc0b6ae1bc4c92672223a54e1ee96ea7f0.tar.xz
kernel-qcow2-linux-c0cefebc0b6ae1bc4c92672223a54e1ee96ea7f0.zip
hvc_console: Export (GPL'ed) hvc_remove
The virtio console, which uses hvc, will get the ability to hot-unplug ports. Export hvc_remove so that virtio_console can disassociate with hvc. Signed-off-by: Amit Shah <amit.shah@redhat.com> Cc: linuxppc-dev@ozlabs.org Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
-rw-r--r--drivers/char/hvc_console.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/char/hvc_console.c b/drivers/char/hvc_console.c
index a632f25f144a..416d3423150d 100644
--- a/drivers/char/hvc_console.c
+++ b/drivers/char/hvc_console.c
@@ -832,6 +832,7 @@ int hvc_remove(struct hvc_struct *hp)
tty_hangup(tty);
return 0;
}
+EXPORT_SYMBOL_GPL(hvc_remove);
/* Driver initialization: called as soon as someone uses hvc_alloc(). */
static int hvc_init(void)