port = uart_port_ref(state);
if (!port)
return;
-@@ -2433,6 +2424,7 @@ static void uart_poll_put_char(struct tt
- #endif
-
- static const struct tty_operations uart_ops = {
-+ .install = uart_install,
- .open = uart_open,
- .close = uart_close,
- .write = uart_write,
-@@ -2926,6 +2918,16 @@ out:
- return ret;
+@@ -2432,7 +2423,18 @@ static void uart_poll_put_char(struct tt
}
+ #endif
+static int uart_install(struct tty_driver *driver, struct tty_struct *tty)
+{
+ return tty_standard_install(driver, tty);
+}
+
- /*
- * Are the two ports equivalent?
- */
+ static const struct tty_operations uart_ops = {
++ .install = uart_install,
+ .open = uart_open,
+ .close = uart_close,
+ .write = uart_write,
port = uart_port_ref(state);
if (!port)
return;
-@@ -2424,6 +2415,7 @@ static void uart_poll_put_char(struct tt
- #endif
-
- static const struct tty_operations uart_ops = {
-+ .install = uart_install,
- .open = uart_open,
- .close = uart_close,
- .write = uart_write,
-@@ -2910,6 +2902,16 @@ out:
- return ret;
+@@ -2423,7 +2414,18 @@ static void uart_poll_put_char(struct tt
}
+ #endif
+static int uart_install(struct tty_driver *driver, struct tty_struct *tty)
+{
+ return tty_standard_install(driver, tty);
+}
+
- /*
- * Are the two ports equivalent?
- */
+ static const struct tty_operations uart_ops = {
++ .install = uart_install,
+ .open = uart_open,
+ .close = uart_close,
+ .write = uart_write,