diff options
author | Felipe Balbi <balbi@ti.com> | 2012-09-06 14:45:29 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-09-06 18:17:01 +0200 |
commit | 7e9c8e7dbf3b9cc94947d76cb57985682517cc6e (patch) | |
tree | 251440de9aa6854042db154a18a927e3ac41624f /drivers | |
parent | serial: omap: drop unnecessary check from remove (diff) | |
download | linux-7e9c8e7dbf3b9cc94947d76cb57985682517cc6e.tar.xz linux-7e9c8e7dbf3b9cc94947d76cb57985682517cc6e.zip |
serial: omap: make sure to suspend device before remove
before removing the driver, let's make sure
to force device into a suspended state in order
to conserve power.
Tested-by: Shubhrajyoti D <shubhrajyoti@ti.com>
Acked-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/tty/serial/omap-serial.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/tty/serial/omap-serial.c b/drivers/tty/serial/omap-serial.c index c19d340f6ba8..0ceca4457d3b 100644 --- a/drivers/tty/serial/omap-serial.c +++ b/drivers/tty/serial/omap-serial.c @@ -1369,6 +1369,7 @@ static int serial_omap_remove(struct platform_device *dev) { struct uart_omap_port *up = platform_get_drvdata(dev); + pm_runtime_put_sync(up->dev); pm_runtime_disable(up->dev); uart_remove_one_port(&serial_omap_reg, &up->port); pm_qos_remove_request(&up->pm_qos_request); |