]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/serial/netx-serial.c
serial: fix platform driver hotplug/coldplug
[linux-2.6-omap-h63xx.git] / drivers / serial / netx-serial.c
index 062bad457b1a6775c5566e6a311a2e09798cb642..3123ffeac8ad682e4ec383cd9d9606bc095270fe 100644 (file)
@@ -337,8 +337,8 @@ static void netx_shutdown(struct uart_port *port)
 }
 
 static void
-netx_set_termios(struct uart_port *port, struct termios *termios,
-                  struct termios *old)
+netx_set_termios(struct uart_port *port, struct ktermios *termios,
+                  struct ktermios *old)
 {
        unsigned int baud, quot;
        unsigned char old_cr;
@@ -713,6 +713,7 @@ static struct platform_driver serial_netx_driver = {
 
        .driver         = {
                .name   = DRIVER_NAME,
+               .owner  = THIS_MODULE,
        },
 };
 
@@ -745,3 +746,4 @@ module_exit(netx_serial_exit);
 MODULE_AUTHOR("Sascha Hauer");
 MODULE_DESCRIPTION("NetX serial port driver");
 MODULE_LICENSE("GPL");
+MODULE_ALIAS("platform:" DRIVER_NAME);