Commit 74081f86 authored by Alan Stern's avatar Alan Stern Committed by Greg Kroah-Hartman

PM: Fix misuse of wakeup flag accessors in serial core

This patch (as1059) fixes a mistake in the way the serial core
initializes a device's wakeup settings.  It should use the accessor
routine instead of relying on a macro producing an lvalue.
Signed-off-by: default avatarAlan Stern <stern@rowland.harvard.edu>
Signed-off-by: default avatarRafael J. Wysocki <rjw@sisk.pl>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 57eee3d2
...@@ -2422,7 +2422,7 @@ int uart_add_one_port(struct uart_driver *drv, struct uart_port *port) ...@@ -2422,7 +2422,7 @@ int uart_add_one_port(struct uart_driver *drv, struct uart_port *port)
*/ */
tty_dev = tty_register_device(drv->tty_driver, port->line, port->dev); tty_dev = tty_register_device(drv->tty_driver, port->line, port->dev);
if (likely(!IS_ERR(tty_dev))) { if (likely(!IS_ERR(tty_dev))) {
device_can_wakeup(tty_dev) = 1; device_init_wakeup(tty_dev, 1);
device_set_wakeup_enable(tty_dev, 0); device_set_wakeup_enable(tty_dev, 0);
} else } else
printk(KERN_ERR "Cannot register tty device on line %d\n", printk(KERN_ERR "Cannot register tty device on line %d\n",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment