summaryrefslogtreecommitdiff
path: root/drivers/tty/hvc/hvc_console.h
diff options
context:
space:
mode:
authorJiri Slaby <jslaby@suse.cz>2012-04-02 15:54:21 +0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-04-09 22:28:18 +0400
commitf3d9f25097b62eaeb9e5b71358b863c7bf54c600 (patch)
tree267bae10f0376671e61989ffeec0a2e5ad95ed96 /drivers/tty/hvc/hvc_console.h
parente63f9f7478584e9a09d6aaf97f617937358b4dd2 (diff)
downloadlinux-f3d9f25097b62eaeb9e5b71358b863c7bf54c600.tar.xz
TTY: HVC, add tty_port
And use kref from that. This means we need tty_port->ops->destruct to properly free the structure. This is what destroy_hvc_struct used to do so we leverage that. Signed-off-by: Jiri Slaby <jslaby@suse.cz> Cc: linuxppc-dev@lists.ozlabs.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/hvc/hvc_console.h')
-rw-r--r--drivers/tty/hvc/hvc_console.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tty/hvc/hvc_console.h b/drivers/tty/hvc/hvc_console.h
index c335a1492a54..926d9e4b6db7 100644
--- a/drivers/tty/hvc/hvc_console.h
+++ b/drivers/tty/hvc/hvc_console.h
@@ -46,6 +46,7 @@
#define HVC_ALLOC_TTY_ADAPTERS 8
struct hvc_struct {
+ struct tty_port port;
spinlock_t lock;
int index;
struct tty_struct *tty;
@@ -61,7 +62,6 @@ struct hvc_struct {
struct winsize ws;
struct work_struct tty_resize;
struct list_head next;
- struct kref kref; /* ref count & hvc_struct lifetime */
};
/* implemented by a low level driver */