aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRuchika Kharwar <[email protected]>2012-09-06 15:45:31 +0300
committerGreg Kroah-Hartman <[email protected]>2012-09-06 09:17:02 -0700
commit856e35bf596e83a63c8a9ec749e9f2bcd24a1bdd (patch)
treebe4be0c32baa252a18374ec346971b86a5926565
parent6c3a30c7fbed820f65d5e708f1e83468d8ec9921 (diff)
serial: omap: fix sequence of pm_runtime_* calls.
pm_runtime_enable() needs to be invoked before pm_runtime_use_autosuspend(), and pm_runtime_set_autosuspend_delay() functions. Tested-by: Shubhrajyoti D <[email protected]> Signed-off-by: Nishanth Menon <[email protected]> Signed-off-by: Ruchika Kharwar <[email protected]> Signed-off-by: Felipe Balbi <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
-rw-r--r--drivers/tty/serial/omap-serial.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tty/serial/omap-serial.c b/drivers/tty/serial/omap-serial.c
index 99042b0fb941..f5dcb5aa0000 100644
--- a/drivers/tty/serial/omap-serial.c
+++ b/drivers/tty/serial/omap-serial.c
@@ -1333,12 +1333,12 @@ static int serial_omap_probe(struct platform_device *pdev)
INIT_WORK(&up->qos_work, serial_omap_uart_qos_work);
platform_set_drvdata(pdev, up);
+ pm_runtime_enable(&pdev->dev);
pm_runtime_use_autosuspend(&pdev->dev);
pm_runtime_set_autosuspend_delay(&pdev->dev,
omap_up_info->autosuspend_timeout);
pm_runtime_irq_safe(&pdev->dev);
- pm_runtime_enable(&pdev->dev);
pm_runtime_get_sync(&pdev->dev);
omap_serial_fill_features_erratas(up);