Skip to content

Commit c7ef05c

Browse files
tiwaibroonie
authored andcommitted
ASoC: xtensa: Convert to RUNTIME_PM_OPS()
Use the newer RUNTIME_PM_OPS() macro instead of SET_RUNTIME_PM_OPS() together with pm_ptr(). This optimizes slightly when CONFIG_PM is disabled, too. Reviewed-by: Max Filippov <jcmvbkbc@gmail.com> Signed-off-by: Takashi Iwai <tiwai@suse.de> Reviewed-by: Charles Keepax <ckeepax@opensource.cirrus.com> Link: https://patch.msgid.link/20250317095603.20073-87-tiwai@suse.de Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent 212f5c4 commit c7ef05c

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

sound/soc/xtensa/xtfpga-i2s.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -629,8 +629,8 @@ MODULE_DEVICE_TABLE(of, xtfpga_i2s_of_match);
629629
#endif
630630

631631
static const struct dev_pm_ops xtfpga_i2s_pm_ops = {
632-
SET_RUNTIME_PM_OPS(xtfpga_i2s_runtime_suspend,
633-
xtfpga_i2s_runtime_resume, NULL)
632+
RUNTIME_PM_OPS(xtfpga_i2s_runtime_suspend,
633+
xtfpga_i2s_runtime_resume, NULL)
634634
};
635635

636636
static struct platform_driver xtfpga_i2s_driver = {
@@ -639,7 +639,7 @@ static struct platform_driver xtfpga_i2s_driver = {
639639
.driver = {
640640
.name = "xtfpga-i2s",
641641
.of_match_table = of_match_ptr(xtfpga_i2s_of_match),
642-
.pm = &xtfpga_i2s_pm_ops,
642+
.pm = pm_ptr(&xtfpga_i2s_pm_ops),
643643
},
644644
};
645645

0 commit comments

Comments
 (0)