]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
ASoC: xtensa: Convert to RUNTIME_PM_OPS()
authorTakashi Iwai <tiwai@suse.de>
Mon, 17 Mar 2025 09:55:48 +0000 (10:55 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 17 Mar 2025 10:15:03 +0000 (10:15 +0000)
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>
sound/soc/xtensa/xtfpga-i2s.c

index 4eaa9011405f925367ec1d70e8f6c55b1de69474..678ded059b959d475b6be3766867c8a78bdd4e54 100644 (file)
@@ -629,8 +629,8 @@ MODULE_DEVICE_TABLE(of, xtfpga_i2s_of_match);
 #endif
 
 static const struct dev_pm_ops xtfpga_i2s_pm_ops = {
-       SET_RUNTIME_PM_OPS(xtfpga_i2s_runtime_suspend,
-                          xtfpga_i2s_runtime_resume, NULL)
+       RUNTIME_PM_OPS(xtfpga_i2s_runtime_suspend,
+                      xtfpga_i2s_runtime_resume, NULL)
 };
 
 static struct platform_driver xtfpga_i2s_driver = {
@@ -639,7 +639,7 @@ static struct platform_driver xtfpga_i2s_driver = {
        .driver  = {
                .name = "xtfpga-i2s",
                .of_match_table = of_match_ptr(xtfpga_i2s_of_match),
-               .pm = &xtfpga_i2s_pm_ops,
+               .pm = pm_ptr(&xtfpga_i2s_pm_ops),
        },
 };