File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -642,7 +642,7 @@ static void dcp_platform_shutdown(struct platform_device *pdev)
642642 component_del (& pdev -> dev , & dcp_comp_ops );
643643}
644644
645- static __maybe_unused int dcp_platform_suspend (struct device * dev )
645+ static int dcp_platform_suspend (struct device * dev )
646646{
647647 /*
648648 * Set the device as a wakeup device, which forces its power
@@ -654,13 +654,13 @@ static __maybe_unused int dcp_platform_suspend(struct device *dev)
654654 return 0 ;
655655}
656656
657- static __maybe_unused int dcp_platform_resume (struct device * dev )
657+ static int dcp_platform_resume (struct device * dev )
658658{
659659 return 0 ;
660660}
661661
662- static SIMPLE_DEV_PM_OPS (dcp_platform_pm_ops ,
663- dcp_platform_suspend , dcp_platform_resume ) ;
662+ static DEFINE_SIMPLE_DEV_PM_OPS (dcp_platform_pm_ops ,
663+ dcp_platform_suspend , dcp_platform_resume ) ;
664664
665665static const struct of_device_id of_match [] = {
666666 { .compatible = "apple,dcp" },
You can’t perform that action at this time.
0 commit comments