diff options
author | Charles Keepax <ckeepax@opensource.cirrus.com> | 2023-08-24 11:39:02 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2023-08-24 18:22:00 +0100 |
commit | 2b59332ead54870ed0f1a8b122a1d640a4865fdc (patch) | |
tree | 1988dd7b13367d29137b288798e185e7bd18cfeb | |
parent | a74048432fbb30e7a574747f6e1f47aef17010b0 (diff) | |
download | linux-stable-2b59332ead54870ed0f1a8b122a1d640a4865fdc.tar.gz linux-stable-2b59332ead54870ed0f1a8b122a1d640a4865fdc.tar.bz2 linux-stable-2b59332ead54870ed0f1a8b122a1d640a4865fdc.zip |
ASoC: cs42l43: Use new-style PM runtime macros
Update to the newer style PM runtime macros, no functional change.
Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com
Link: https://lore.kernel.org/r/20230824103902.1606288-1-ckeepax@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org
-rw-r--r-- | sound/soc/codecs/cs42l43.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sound/soc/codecs/cs42l43.c b/sound/soc/codecs/cs42l43.c index 18178ffa82f2..24e718e51174 100644 --- a/sound/soc/codecs/cs42l43.c +++ b/sound/soc/codecs/cs42l43.c @@ -2238,7 +2238,7 @@ static int cs42l43_codec_remove(struct platform_device *pdev) return 0; } -static int __maybe_unused cs42l43_codec_runtime_resume(struct device *dev) +static int cs42l43_codec_runtime_resume(struct device *dev) { struct cs42l43_codec *priv = dev_get_drvdata(dev); @@ -2250,9 +2250,8 @@ static int __maybe_unused cs42l43_codec_runtime_resume(struct device *dev) return 0; } -static const struct dev_pm_ops cs42l43_codec_pm_ops = { - SET_RUNTIME_PM_OPS(NULL, cs42l43_codec_runtime_resume, NULL) -}; +DEFINE_RUNTIME_DEV_PM_OPS(cs42l43_codec_pm_ops, NULL, + cs42l43_codec_runtime_resume, NULL); static const struct platform_device_id cs42l43_codec_id_table[] = { { "cs42l43-codec", }, |