TTY: HVC, add tty_port
[firefly-linux-kernel-4.4.55.git] / drivers / tty / hvc / hvc_console.h
index c335a1492a54a0a73906feaea74c9bbf78fa3c14..926d9e4b6db7aa26b88d1b0639f6fab11425c72b 100644 (file)
@@ -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 */