File tree Expand file tree Collapse file tree 5 files changed +7
-9
lines changed Expand file tree Collapse file tree 5 files changed +7
-9
lines changed Original file line number Diff line number Diff line change @@ -456,7 +456,7 @@ static struct platform_driver snd_sof_of_imx8_driver = {
456
456
.remove = sof_of_remove ,
457
457
.driver = {
458
458
.name = "sof-audio-of-imx8" ,
459
- .pm = & sof_of_pm ,
459
+ .pm = pm_ptr ( & sof_of_pm ) ,
460
460
.of_match_table = sof_of_imx8_ids ,
461
461
},
462
462
};
Original file line number Diff line number Diff line change @@ -126,7 +126,7 @@ static struct platform_driver snd_sof_of_imx9_driver = {
126
126
.remove = sof_of_remove ,
127
127
.driver = {
128
128
.name = "sof-audio-of-imx9" ,
129
- .pm = & sof_of_pm ,
129
+ .pm = pm_ptr ( & sof_of_pm ) ,
130
130
.of_match_table = sof_of_imx9_ids ,
131
131
},
132
132
};
Original file line number Diff line number Diff line change @@ -660,7 +660,7 @@ static struct platform_driver snd_sof_of_mt8186_driver = {
660
660
.shutdown = sof_of_shutdown ,
661
661
.driver = {
662
662
.name = "sof-audio-of-mt8186" ,
663
- .pm = & sof_of_pm ,
663
+ .pm = pm_ptr ( & sof_of_pm ) ,
664
664
.of_match_table = sof_of_mt8186_ids ,
665
665
},
666
666
};
Original file line number Diff line number Diff line change @@ -616,7 +616,7 @@ static struct platform_driver snd_sof_of_mt8195_driver = {
616
616
.shutdown = sof_of_shutdown ,
617
617
.driver = {
618
618
.name = "sof-audio-of-mt8195" ,
619
- .pm = & sof_of_pm ,
619
+ .pm = pm_ptr ( & sof_of_pm ) ,
620
620
.of_match_table = sof_of_mt8195_ids ,
621
621
},
622
622
};
Original file line number Diff line number Diff line change @@ -30,14 +30,12 @@ static char *tplg_filename;
30
30
module_param (tplg_filename , charp , 0444 );
31
31
MODULE_PARM_DESC (tplg_filename , "deprecated - moved to snd-sof module." );
32
32
33
- const struct dev_pm_ops sof_of_pm = {
33
+ EXPORT_DEV_PM_OPS ( sof_of_pm ) = {
34
34
.prepare = snd_sof_prepare ,
35
35
.complete = snd_sof_complete ,
36
- SET_SYSTEM_SLEEP_PM_OPS (snd_sof_suspend , snd_sof_resume )
37
- SET_RUNTIME_PM_OPS (snd_sof_runtime_suspend , snd_sof_runtime_resume ,
38
- NULL )
36
+ SYSTEM_SLEEP_PM_OPS (snd_sof_suspend , snd_sof_resume )
37
+ RUNTIME_PM_OPS (snd_sof_runtime_suspend , snd_sof_runtime_resume , NULL )
39
38
};
40
- EXPORT_SYMBOL (sof_of_pm );
41
39
42
40
static void sof_of_probe_complete (struct device * dev )
43
41
{
You can’t perform that action at this time.
0 commit comments