|
@@ -390,7 +390,7 @@ static int __exit tegra_rtc_remove(struct platform_device *pdev)
|
|
|
return 0;
|
|
|
}
|
|
|
|
|
|
-#ifdef CONFIG_PM
|
|
|
+#ifdef CONFIG_PM_SLEEP
|
|
|
static int tegra_rtc_suspend(struct platform_device *pdev, pm_message_t state)
|
|
|
{
|
|
|
struct device *dev = &pdev->dev;
|
|
@@ -446,7 +446,7 @@ static struct platform_driver tegra_rtc_driver = {
|
|
|
.owner = THIS_MODULE,
|
|
|
.of_match_table = tegra_rtc_dt_match,
|
|
|
},
|
|
|
-#ifdef CONFIG_PM
|
|
|
+#ifdef CONFIG_PM_SLEEP
|
|
|
.suspend = tegra_rtc_suspend,
|
|
|
.resume = tegra_rtc_resume,
|
|
|
#endif
|