|
@@ -470,7 +470,7 @@ static int mxc_rtc_remove(struct platform_device *pdev)
|
|
|
return 0;
|
|
|
}
|
|
|
|
|
|
-#ifdef CONFIG_PM
|
|
|
+#ifdef CONFIG_PM_SLEEP
|
|
|
static int mxc_rtc_suspend(struct device *dev)
|
|
|
{
|
|
|
struct rtc_plat_data *pdata = dev_get_drvdata(dev);
|
|
@@ -490,19 +490,14 @@ static int mxc_rtc_resume(struct device *dev)
|
|
|
|
|
|
return 0;
|
|
|
}
|
|
|
-
|
|
|
-static struct dev_pm_ops mxc_rtc_pm_ops = {
|
|
|
- .suspend = mxc_rtc_suspend,
|
|
|
- .resume = mxc_rtc_resume,
|
|
|
-};
|
|
|
#endif
|
|
|
|
|
|
+static SIMPLE_DEV_PM_OPS(mxc_rtc_pm_ops, mxc_rtc_suspend, mxc_rtc_resume);
|
|
|
+
|
|
|
static struct platform_driver mxc_rtc_driver = {
|
|
|
.driver = {
|
|
|
.name = "mxc_rtc",
|
|
|
-#ifdef CONFIG_PM
|
|
|
.pm = &mxc_rtc_pm_ops,
|
|
|
-#endif
|
|
|
.owner = THIS_MODULE,
|
|
|
},
|
|
|
.id_table = imx_rtc_devtype,
|