diff options
author | Alan Stern <stern@rowland.harvard.edu> | 2008-03-19 17:35:13 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2008-04-19 22:10:25 -0400 |
commit | 74081f8667d73ad59961cf63be5f0e9d6a87c8a3 (patch) | |
tree | f809a9e099c252c89ea18c84bf991f7af76e8b7e /drivers/serial | |
parent | 57eee3d23e8833ca18708b374c648235691942ba (diff) |
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: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/serial')
-rw-r--r-- | drivers/serial/serial_core.c | 2 |
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", |