File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
drivers/mtd/nand/raw/gpmi-nand Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -2811,7 +2811,6 @@ static void gpmi_nand_remove(struct platform_device *pdev)
2811
2811
release_resources (this );
2812
2812
}
2813
2813
2814
- #ifdef CONFIG_PM_SLEEP
2815
2814
static int gpmi_pm_suspend (struct device * dev )
2816
2815
{
2817
2816
struct gpmi_nand_data * this = dev_get_drvdata (dev );
@@ -2849,7 +2848,6 @@ static int gpmi_pm_resume(struct device *dev)
2849
2848
2850
2849
return 0 ;
2851
2850
}
2852
- #endif /* CONFIG_PM_SLEEP */
2853
2851
2854
2852
static int __maybe_unused gpmi_runtime_suspend (struct device * dev )
2855
2853
{
@@ -2866,14 +2864,14 @@ static int __maybe_unused gpmi_runtime_resume(struct device *dev)
2866
2864
}
2867
2865
2868
2866
static const struct dev_pm_ops gpmi_pm_ops = {
2869
- SET_SYSTEM_SLEEP_PM_OPS (gpmi_pm_suspend , gpmi_pm_resume )
2870
- SET_RUNTIME_PM_OPS (gpmi_runtime_suspend , gpmi_runtime_resume , NULL )
2867
+ SYSTEM_SLEEP_PM_OPS (gpmi_pm_suspend , gpmi_pm_resume )
2868
+ RUNTIME_PM_OPS (gpmi_runtime_suspend , gpmi_runtime_resume , NULL )
2871
2869
};
2872
2870
2873
2871
static struct platform_driver gpmi_nand_driver = {
2874
2872
.driver = {
2875
2873
.name = "gpmi-nand" ,
2876
- .pm = & gpmi_pm_ops ,
2874
+ .pm = pm_ptr ( & gpmi_pm_ops ) ,
2877
2875
.of_match_table = gpmi_nand_id_table ,
2878
2876
},
2879
2877
.probe = gpmi_nand_probe ,
You can’t perform that action at this time.
0 commit comments