i2c: designware: Make sure the device is suspended before disabling runtime PM
[deliverable/linux.git] / drivers / i2c / busses / i2c-designware-platdrv.c
index 4794911a61654c3b90e1292c4197472a6df88baa..3dd2de31a2f8d380f71ff61c562a53d8638f9eb5 100644 (file)
@@ -281,7 +281,8 @@ static int dw_i2c_remove(struct platform_device *pdev)
 
        i2c_dw_disable(dev);
 
-       pm_runtime_put(&pdev->dev);
+       pm_runtime_dont_use_autosuspend(&pdev->dev);
+       pm_runtime_put_sync(&pdev->dev);
        pm_runtime_disable(&pdev->dev);
 
        if (has_acpi_companion(&pdev->dev))
This page took 0.024199 seconds and 5 git commands to generate.