Skip to content

Commit 24df03e

Browse files
tiwaibroonie
authored andcommitted
ASoC: SOF: pci: Convert to EXPORT_NS_DEV_PM_OPS()
Use the newer EXPORT_NS_DEV_PM_OPS() macro together with pm_ptr(). This optimizes slightly when CONFIG_PM is disabled, too. Cc: [email protected] Signed-off-by: Takashi Iwai <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent 40456c8 commit 24df03e

File tree

14 files changed

+17
-18
lines changed

14 files changed

+17
-18
lines changed

sound/soc/sof/amd/pci-acp63.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ static struct pci_driver snd_sof_pci_amd_acp63_driver = {
104104
.probe = acp63_pci_probe,
105105
.remove = acp63_pci_remove,
106106
.driver = {
107-
.pm = &sof_pci_pm,
107+
.pm = pm_ptr(&sof_pci_pm),
108108
},
109109
};
110110
module_pci_driver(snd_sof_pci_amd_acp63_driver);

sound/soc/sof/amd/pci-acp70.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ static struct pci_driver snd_sof_pci_amd_acp70_driver = {
100100
.probe = acp70_pci_probe,
101101
.remove = acp70_pci_remove,
102102
.driver = {
103-
.pm = &sof_pci_pm,
103+
.pm = pm_ptr(&sof_pci_pm),
104104
},
105105
};
106106
module_pci_driver(snd_sof_pci_amd_acp70_driver);

sound/soc/sof/amd/pci-rn.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ static struct pci_driver snd_sof_pci_amd_rn_driver = {
9797
.probe = acp_pci_rn_probe,
9898
.remove = acp_pci_rn_remove,
9999
.driver = {
100-
.pm = &sof_pci_pm,
100+
.pm = pm_ptr(&sof_pci_pm),
101101
},
102102
};
103103
module_pci_driver(snd_sof_pci_amd_rn_driver);

sound/soc/sof/amd/pci-vangogh.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ static struct pci_driver snd_sof_pci_amd_vgh_driver = {
9090
.probe = acp_pci_vgh_probe,
9191
.remove = acp_pci_vgh_remove,
9292
.driver = {
93-
.pm = &sof_pci_pm,
93+
.pm = pm_ptr(&sof_pci_pm),
9494
},
9595
};
9696
module_pci_driver(snd_sof_pci_amd_vgh_driver);

sound/soc/sof/intel/pci-apl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ static struct pci_driver snd_sof_pci_intel_apl_driver = {
9999
.remove = sof_pci_remove,
100100
.shutdown = sof_pci_shutdown,
101101
.driver = {
102-
.pm = &sof_pci_pm,
102+
.pm = pm_ptr(&sof_pci_pm),
103103
},
104104
};
105105
module_pci_driver(snd_sof_pci_intel_apl_driver);

sound/soc/sof/intel/pci-cnl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ static struct pci_driver snd_sof_pci_intel_cnl_driver = {
137137
.remove = sof_pci_remove,
138138
.shutdown = sof_pci_shutdown,
139139
.driver = {
140-
.pm = &sof_pci_pm,
140+
.pm = pm_ptr(&sof_pci_pm),
141141
},
142142
};
143143
module_pci_driver(snd_sof_pci_intel_cnl_driver);

sound/soc/sof/intel/pci-icl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ static struct pci_driver snd_sof_pci_intel_icl_driver = {
102102
.remove = sof_pci_remove,
103103
.shutdown = sof_pci_shutdown,
104104
.driver = {
105-
.pm = &sof_pci_pm,
105+
.pm = pm_ptr(&sof_pci_pm),
106106
},
107107
};
108108
module_pci_driver(snd_sof_pci_intel_icl_driver);

sound/soc/sof/intel/pci-lnl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ static struct pci_driver snd_sof_pci_intel_lnl_driver = {
7272
.remove = sof_pci_remove,
7373
.shutdown = sof_pci_shutdown,
7474
.driver = {
75-
.pm = &sof_pci_pm,
75+
.pm = pm_ptr(&sof_pci_pm),
7676
},
7777
};
7878
module_pci_driver(snd_sof_pci_intel_lnl_driver);

sound/soc/sof/intel/pci-mtl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ static struct pci_driver snd_sof_pci_intel_mtl_driver = {
135135
.remove = sof_pci_remove,
136136
.shutdown = sof_pci_shutdown,
137137
.driver = {
138-
.pm = &sof_pci_pm,
138+
.pm = pm_ptr(&sof_pci_pm),
139139
},
140140
};
141141
module_pci_driver(snd_sof_pci_intel_mtl_driver);

sound/soc/sof/intel/pci-ptl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ static struct pci_driver snd_sof_pci_intel_ptl_driver = {
7171
.remove = sof_pci_remove,
7272
.shutdown = sof_pci_shutdown,
7373
.driver = {
74-
.pm = &sof_pci_pm,
74+
.pm = pm_ptr(&sof_pci_pm),
7575
},
7676
};
7777
module_pci_driver(snd_sof_pci_intel_ptl_driver);

0 commit comments

Comments
 (0)