int ret = 0;
int stop = 0;
-#ifdef CONFIG_PM_RUNTIME
+#ifdef CONFIG_PM
int clk_ret = 0;
#endif
return -EIO;
}
-#ifdef CONFIG_PM_RUNTIME
+#ifdef CONFIG_PM
clk_ret = pm_runtime_get_sync(i2c->dev);
if (clk_ret < 0) {
exynos_update_ip_idle_status(i2c->idle_ip_index, 0);
}
out:
-#ifdef CONFIG_PM_RUNTIME
+#ifdef CONFIG_PM
if (clk_ret < 0) {
clk_disable_unprepare(i2c->clk);
exynos_update_ip_idle_status(i2c->idle_ip_index, 1);
return -ENOENT;
}
-#ifdef CONFIG_PM_RUNTIME
+#ifdef CONFIG_PM
pm_runtime_use_autosuspend(&pdev->dev);
pm_runtime_set_autosuspend_delay(&pdev->dev,
EXYNOS5_HSI2C_RUNTIME_PM_DELAY);
}
}
platform_set_drvdata(pdev, i2c);
-#ifdef CONFIG_PM_RUNTIME
+#ifdef CONFIG_PM
pm_runtime_get_sync(&pdev->dev);
#else
exynos_update_ip_idle_status(i2c->idle_ip_index, 0);
goto err_clk;
}
-#ifdef CONFIG_PM_RUNTIME
+#ifdef CONFIG_PM
pm_runtime_mark_last_busy(&pdev->dev);
pm_runtime_put_autosuspend(&pdev->dev);
#else
}
#endif
-#ifdef CONFIG_PM_RUNTIME
+#ifdef CONFIG_PM
static int exynos5_i2c_runtime_suspend(struct device *dev)
{
struct platform_device *pdev = to_platform_device(dev);
return 0;
}
-#endif /* CONFIG_PM_RUNTIME */
+#endif /* CONFIG_PM */
static const struct dev_pm_ops exynos5_i2c_pm = {
SET_NOIRQ_SYSTEM_SLEEP_PM_OPS(exynos5_i2c_suspend_noirq,