Skip to content

Commit deff848

Browse files
rfvirgiltiwai
authored andcommitted
ALSA: hda: cs35l56: Use the new RUNTIME_PM_OPS() macro
Use RUNTIME_PM_OPS() instead of the old SET_RUNTIME_PM_OPS(). This means we don't need __maybe_unused on the functions. Fixes: 73cfbfa ("ALSA: hda/cs35l56: Add driver for Cirrus Logic CS35L56 amplifier") Signed-off-by: Richard Fitzgerald <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Takashi Iwai <[email protected]>
1 parent aadb033 commit deff848

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sound/pci/hda/cs35l56_hda.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ static void cs35l56_hda_playback_hook(struct device *dev, int action)
105105
}
106106
}
107107

108-
static int __maybe_unused cs35l56_hda_runtime_suspend(struct device *dev)
108+
static int cs35l56_hda_runtime_suspend(struct device *dev)
109109
{
110110
struct cs35l56_hda *cs35l56 = dev_get_drvdata(dev);
111111

@@ -115,7 +115,7 @@ static int __maybe_unused cs35l56_hda_runtime_suspend(struct device *dev)
115115
return cs35l56_runtime_suspend_common(&cs35l56->base);
116116
}
117117

118-
static int __maybe_unused cs35l56_hda_runtime_resume(struct device *dev)
118+
static int cs35l56_hda_runtime_resume(struct device *dev)
119119
{
120120
struct cs35l56_hda *cs35l56 = dev_get_drvdata(dev);
121121
int ret;
@@ -1015,7 +1015,7 @@ void cs35l56_hda_remove(struct device *dev)
10151015
EXPORT_SYMBOL_NS_GPL(cs35l56_hda_remove, SND_HDA_SCODEC_CS35L56);
10161016

10171017
const struct dev_pm_ops cs35l56_hda_pm_ops = {
1018-
SET_RUNTIME_PM_OPS(cs35l56_hda_runtime_suspend, cs35l56_hda_runtime_resume, NULL)
1018+
RUNTIME_PM_OPS(cs35l56_hda_runtime_suspend, cs35l56_hda_runtime_resume, NULL)
10191019
SYSTEM_SLEEP_PM_OPS(cs35l56_hda_system_suspend, cs35l56_hda_system_resume)
10201020
LATE_SYSTEM_SLEEP_PM_OPS(cs35l56_hda_system_suspend_late,
10211021
cs35l56_hda_system_resume_early)

0 commit comments

Comments
 (0)