diff options
author | Hendrik Brueckner <brueckner@linux.vnet.ibm.com> | 2008-10-13 19:12:48 -0400 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2008-10-21 19:59:54 -0400 |
commit | fc362e2e0efd8b652ebfb409a4e43e6189c04f6f (patch) | |
tree | 9cffc84bcc4e615ee08f0f47ff58a7131b55194a /drivers/char/virtio_console.c | |
parent | a02efb906d12c9d4eb2ab7c59049ba9545e5412d (diff) |
hvc_console: Add a hangup notifier for backends
I have added a hangup notifier that can be used by hvc console
backends to handle a tty hangup. The default irq hangup notifier
calls the notifier_del_irq() for compatibility.
Acked-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Hendrik Brueckner <brueckner@linux.vnet.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'drivers/char/virtio_console.c')
-rw-r--r-- | drivers/char/virtio_console.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/char/virtio_console.c b/drivers/char/virtio_console.c index d0f4eb6fdb7f..3fb0d2c88ba5 100644 --- a/drivers/char/virtio_console.c +++ b/drivers/char/virtio_console.c | |||
@@ -198,6 +198,7 @@ static int __devinit virtcons_probe(struct virtio_device *dev) | |||
198 | virtio_cons.put_chars = put_chars; | 198 | virtio_cons.put_chars = put_chars; |
199 | virtio_cons.notifier_add = notifier_add_vio; | 199 | virtio_cons.notifier_add = notifier_add_vio; |
200 | virtio_cons.notifier_del = notifier_del_vio; | 200 | virtio_cons.notifier_del = notifier_del_vio; |
201 | virtio_cons.notifier_hangup = notifier_del_vio; | ||
201 | 202 | ||
202 | /* The first argument of hvc_alloc() is the virtual console number, so | 203 | /* The first argument of hvc_alloc() is the virtual console number, so |
203 | * we use zero. The second argument is the parameter for the | 204 | * we use zero. The second argument is the parameter for the |