File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -3754,7 +3754,7 @@ static int sci_probe(struct platform_device *dev)
3754
3754
return 0 ;
3755
3755
}
3756
3756
3757
- static __maybe_unused int sci_suspend (struct device * dev )
3757
+ static int sci_suspend (struct device * dev )
3758
3758
{
3759
3759
struct sci_port * sport = dev_get_drvdata (dev );
3760
3760
@@ -3772,7 +3772,7 @@ static __maybe_unused int sci_suspend(struct device *dev)
3772
3772
return 0 ;
3773
3773
}
3774
3774
3775
- static __maybe_unused int sci_resume (struct device * dev )
3775
+ static int sci_resume (struct device * dev )
3776
3776
{
3777
3777
struct sci_port * sport = dev_get_drvdata (dev );
3778
3778
@@ -3793,14 +3793,14 @@ static __maybe_unused int sci_resume(struct device *dev)
3793
3793
return 0 ;
3794
3794
}
3795
3795
3796
- static SIMPLE_DEV_PM_OPS (sci_dev_pm_ops , sci_suspend , sci_resume ) ;
3796
+ static DEFINE_SIMPLE_DEV_PM_OPS (sci_dev_pm_ops , sci_suspend , sci_resume ) ;
3797
3797
3798
3798
static struct platform_driver sci_driver = {
3799
3799
.probe = sci_probe ,
3800
3800
.remove = sci_remove ,
3801
3801
.driver = {
3802
3802
.name = "sh-sci" ,
3803
- .pm = & sci_dev_pm_ops ,
3803
+ .pm = pm_sleep_ptr ( & sci_dev_pm_ops ) ,
3804
3804
.of_match_table = of_match_ptr (of_sci_match ),
3805
3805
},
3806
3806
};
You can’t perform that action at this time.
0 commit comments