From: Kisang Lee Date: Thu, 4 Jun 2015 04:19:23 +0000 (+0900) Subject: i2c: s3c2410: change featuring for compile error X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=9b7c1c07738c932fff06ccb034d9b52c036bade7;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git i2c: s3c2410: change featuring for compile error Change-Id: Icf4ac66085aca77da09a068a843919f0e4a2218f Signed-off-by: Kisang Lee --- diff --git a/drivers/i2c/busses/i2c-s3c2410.c b/drivers/i2c/busses/i2c-s3c2410.c index 2d344da0c92d..3e5d67b0a7f4 100644 --- a/drivers/i2c/busses/i2c-s3c2410.c +++ b/drivers/i2c/busses/i2c-s3c2410.c @@ -39,9 +39,12 @@ #include +#ifdef CONFIG_CPU_IDLE #include +#endif -#ifdef CONFIG_EXYNOS_I2C_RESET_DURING_DSTOP +#ifdef CONFIG_CPU_IDLE +#include 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);