diff options
-rw-r--r-- | drivers/i2c/busses/i2c-s3c2410.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/i2c/busses/i2c-s3c2410.c b/drivers/i2c/busses/i2c-s3c2410.c index 3e0335f1fc60..f01cdf35f4c9 100644 --- a/drivers/i2c/busses/i2c-s3c2410.c +++ b/drivers/i2c/busses/i2c-s3c2410.c | |||
@@ -1118,7 +1118,7 @@ static int s3c24xx_i2c_remove(struct platform_device *pdev) | |||
1118 | return 0; | 1118 | return 0; |
1119 | } | 1119 | } |
1120 | 1120 | ||
1121 | #ifdef CONFIG_PM | 1121 | #ifdef CONFIG_PM_SLEEP |
1122 | static int s3c24xx_i2c_suspend_noirq(struct device *dev) | 1122 | static int s3c24xx_i2c_suspend_noirq(struct device *dev) |
1123 | { | 1123 | { |
1124 | struct platform_device *pdev = to_platform_device(dev); | 1124 | struct platform_device *pdev = to_platform_device(dev); |
@@ -1141,10 +1141,14 @@ static int s3c24xx_i2c_resume(struct device *dev) | |||
1141 | 1141 | ||
1142 | return 0; | 1142 | return 0; |
1143 | } | 1143 | } |
1144 | #endif | ||
1144 | 1145 | ||
1146 | #ifdef CONFIG_PM | ||
1145 | static const struct dev_pm_ops s3c24xx_i2c_dev_pm_ops = { | 1147 | static const struct dev_pm_ops s3c24xx_i2c_dev_pm_ops = { |
1148 | #ifdef CONFIG_PM_SLEEP | ||
1146 | .suspend_noirq = s3c24xx_i2c_suspend_noirq, | 1149 | .suspend_noirq = s3c24xx_i2c_suspend_noirq, |
1147 | .resume = s3c24xx_i2c_resume, | 1150 | .resume = s3c24xx_i2c_resume, |
1151 | #endif | ||
1148 | }; | 1152 | }; |
1149 | 1153 | ||
1150 | #define S3C24XX_DEV_PM_OPS (&s3c24xx_i2c_dev_pm_ops) | 1154 | #define S3C24XX_DEV_PM_OPS (&s3c24xx_i2c_dev_pm_ops) |