|
@@ -1506,7 +1506,6 @@ 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);
|
|
|
if (omap_up_info->autosuspend_timeout == 0)
|
|
|
omap_up_info->autosuspend_timeout = -1;
|
|
|
device_init_wakeup(up->dev, true);
|
|
@@ -1515,6 +1514,8 @@ static int serial_omap_probe(struct platform_device *pdev)
|
|
|
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);
|