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/hvc_vio.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/hvc_vio.c')
-rw-r--r-- | drivers/char/hvc_vio.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/char/hvc_vio.c b/drivers/char/hvc_vio.c index 93f3840c1682..019e0b58593d 100644 --- a/drivers/char/hvc_vio.c +++ b/drivers/char/hvc_vio.c | |||
@@ -82,6 +82,7 @@ static struct hv_ops hvc_get_put_ops = { | |||
82 | .put_chars = hvc_put_chars, | 82 | .put_chars = hvc_put_chars, |
83 | .notifier_add = notifier_add_irq, | 83 | .notifier_add = notifier_add_irq, |
84 | .notifier_del = notifier_del_irq, | 84 | .notifier_del = notifier_del_irq, |
85 | .notifier_hangup = notifier_hangup_irq, | ||
85 | }; | 86 | }; |
86 | 87 | ||
87 | static int __devinit hvc_vio_probe(struct vio_dev *vdev, | 88 | static int __devinit hvc_vio_probe(struct vio_dev *vdev, |