|
@@ -1118,7 +1118,7 @@ static int s3c24xx_i2c_remove(struct platform_device *pdev)
|
|
|
return 0;
|
|
|
}
|
|
|
|
|
|
-#ifdef CONFIG_PM
|
|
|
+#ifdef CONFIG_PM_SLEEP
|
|
|
static int s3c24xx_i2c_suspend_noirq(struct device *dev)
|
|
|
{
|
|
|
struct platform_device *pdev = to_platform_device(dev);
|
|
@@ -1141,10 +1141,14 @@ static int s3c24xx_i2c_resume(struct device *dev)
|
|
|
|
|
|
return 0;
|
|
|
}
|
|
|
+#endif
|
|
|
|
|
|
+#ifdef CONFIG_PM
|
|
|
static const struct dev_pm_ops s3c24xx_i2c_dev_pm_ops = {
|
|
|
+#ifdef CONFIG_PM_SLEEP
|
|
|
.suspend_noirq = s3c24xx_i2c_suspend_noirq,
|
|
|
.resume = s3c24xx_i2c_resume,
|
|
|
+#endif
|
|
|
};
|
|
|
|
|
|
#define S3C24XX_DEV_PM_OPS (&s3c24xx_i2c_dev_pm_ops)
|