File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -87,8 +87,7 @@ static const struct of_device_id atmel_flexcom_of_match[] = {
8787};
8888MODULE_DEVICE_TABLE (of , atmel_flexcom_of_match );
8989
90- #ifdef CONFIG_PM_SLEEP
91- static int atmel_flexcom_resume (struct device * dev )
90+ static int __maybe_unused atmel_flexcom_resume_noirq (struct device * dev )
9291{
9392 struct atmel_flexcom * ddata = dev_get_drvdata (dev );
9493 int err ;
@@ -105,16 +104,16 @@ static int atmel_flexcom_resume(struct device *dev)
105104
106105 return 0 ;
107106}
108- #endif
109107
110- static SIMPLE_DEV_PM_OPS (atmel_flexcom_pm_ops , NULL,
111- atmel_flexcom_resume ) ;
108+ static const struct dev_pm_ops atmel_flexcom_pm_ops = {
109+ .resume_noirq = atmel_flexcom_resume_noirq ,
110+ };
112111
113112static struct platform_driver atmel_flexcom_driver = {
114113 .probe = atmel_flexcom_probe ,
115114 .driver = {
116115 .name = "atmel_flexcom" ,
117- .pm = & atmel_flexcom_pm_ops ,
116+ .pm = pm_ptr ( & atmel_flexcom_pm_ops ) ,
118117 .of_match_table = atmel_flexcom_of_match ,
119118 },
120119};
You can’t perform that action at this time.
0 commit comments