aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/serial
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/serial')
-rw-r--r--drivers/serial/serial_core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/serial/serial_core.c b/drivers/serial/serial_core.c
index c32c1ca75f63..a9ca03ead3e5 100644
--- a/drivers/serial/serial_core.c
+++ b/drivers/serial/serial_core.c
@@ -2422,7 +2422,7 @@ int uart_add_one_port(struct uart_driver *drv, struct uart_port *port)
2422 */ 2422 */
2423 tty_dev = tty_register_device(drv->tty_driver, port->line, port->dev); 2423 tty_dev = tty_register_device(drv->tty_driver, port->line, port->dev);
2424 if (likely(!IS_ERR(tty_dev))) { 2424 if (likely(!IS_ERR(tty_dev))) {
2425 device_can_wakeup(tty_dev) = 1; 2425 device_init_wakeup(tty_dev, 1);
2426 device_set_wakeup_enable(tty_dev, 0); 2426 device_set_wakeup_enable(tty_dev, 0);
2427 } else 2427 } else
2428 printk(KERN_ERR "Cannot register tty device on line %d\n", 2428 printk(KERN_ERR "Cannot register tty device on line %d\n",