i2c: s3c2410: change featuring for compile error
authorKisang Lee <kisang80.lee@samsung.com>
Thu, 4 Jun 2015 04:19:23 +0000 (13:19 +0900)
committermyung-su.cha <myung-su.cha@samsung.com>
Thu, 10 May 2018 04:40:51 +0000 (13:40 +0900)
Change-Id: Icf4ac66085aca77da09a068a843919f0e4a2218f
Signed-off-by: Kisang Lee <kisang80.lee@samsung.com>
drivers/i2c/busses/i2c-s3c2410.c

index 2d344da0c92d26cce74259eafe837a118a87c208..3e5d67b0a7f4e9acc067e14e83a7feafd236ebc9 100644 (file)
 
 #include <linux/platform_data/i2c-s3c2410.h>
 
+#ifdef CONFIG_CPU_IDLE
 #include <mach/exynos-pm.h>
+#endif
 
-#ifdef CONFIG_EXYNOS_I2C_RESET_DURING_DSTOP
+#ifdef CONFIG_CPU_IDLE
+#include <mach/exynos-pm.h>
 static LIST_HEAD(drvdata_list);
 #endif
 
@@ -1114,7 +1117,7 @@ s3c24xx_i2c_parse_dt(struct device_node *np, struct s3c24xx_i2c *i2c)
 }
 #endif
 
-#ifdef CONFIG_EXYNOS_I2C_RESET_DURING_DSTOP
+#ifdef CONFIG_CPU_IDLE
 static int s3c24xx_i2c_notifier(struct notifier_block *self,
                                unsigned long cmd, void *v)
 {
@@ -1133,7 +1136,7 @@ static int s3c24xx_i2c_notifier(struct notifier_block *self,
 static struct notifier_block s3c24xx_i2c_notifier_block = {
        .notifier_call = s3c24xx_i2c_notifier,
 };
-#endif /* CONFIG_EXYNOS_I2C_RESET_DURING_DSTOP */
+#endif /* CONFIG_CPU_IDLE */
 
 /* s3c24xx_i2c_probe
  *
@@ -1269,7 +1272,7 @@ static int s3c24xx_i2c_probe(struct platform_device *pdev)
 
        pm_runtime_enable(&i2c->adap.dev);
 
-#ifdef CONFIG_EXYNOS_I2C_RESET_DURING_DSTOP
+#ifdef CONFIG_CPU_IDLE
        list_add_tail(&i2c->node, &drvdata_list);
 #endif
 
@@ -1365,7 +1368,7 @@ static struct platform_driver s3c24xx_i2c_driver = {
 
 static int __init i2c_adap_s3c_init(void)
 {
-#ifdef CONFIG_EXYNOS_I2C_RESET_DURING_DSTOP
+#ifdef CONFIG_CPU_IDLE
        exynos_pm_register_notifier(&s3c24xx_i2c_notifier_block);
 #endif
        return platform_driver_register(&s3c24xx_i2c_driver);