@@ -913,7 +913,7 @@ static const struct mipi_dsi_host_ops rzg2l_mipi_dsi_host_ops = {
913913 * Power Management
914914 */
915915
916- static int __maybe_unused rzg2l_mipi_pm_runtime_suspend (struct device * dev )
916+ static int rzg2l_mipi_pm_runtime_suspend (struct device * dev )
917917{
918918 struct rzg2l_mipi_dsi * dsi = dev_get_drvdata (dev );
919919
@@ -923,7 +923,7 @@ static int __maybe_unused rzg2l_mipi_pm_runtime_suspend(struct device *dev)
923923 return 0 ;
924924}
925925
926- static int __maybe_unused rzg2l_mipi_pm_runtime_resume (struct device * dev )
926+ static int rzg2l_mipi_pm_runtime_resume (struct device * dev )
927927{
928928 struct rzg2l_mipi_dsi * dsi = dev_get_drvdata (dev );
929929 int ret ;
@@ -940,7 +940,7 @@ static int __maybe_unused rzg2l_mipi_pm_runtime_resume(struct device *dev)
940940}
941941
942942static const struct dev_pm_ops rzg2l_mipi_pm_ops = {
943- SET_RUNTIME_PM_OPS (rzg2l_mipi_pm_runtime_suspend , rzg2l_mipi_pm_runtime_resume , NULL )
943+ RUNTIME_PM_OPS (rzg2l_mipi_pm_runtime_suspend , rzg2l_mipi_pm_runtime_resume , NULL )
944944};
945945
946946/* -----------------------------------------------------------------------------
@@ -1072,7 +1072,7 @@ static struct platform_driver rzg2l_mipi_dsi_platform_driver = {
10721072 .remove = rzg2l_mipi_dsi_remove ,
10731073 .driver = {
10741074 .name = "rzg2l-mipi-dsi" ,
1075- .pm = & rzg2l_mipi_pm_ops ,
1075+ .pm = pm_ptr ( & rzg2l_mipi_pm_ops ) ,
10761076 .of_match_table = rzg2l_mipi_dsi_of_table ,
10771077 },
10781078};
0 commit comments