Skip to content

Commit faa37a9

Browse files
tiwaibroonie
authored andcommitted
ASoC: rt1308-sdw: Add __maybe_unused to PM callbacks
Fix the compile warnings by adding __maybe_unused to PM callbacks: sound/soc/codecs/rt1308-sdw.c:690:12: warning: ‘rt1308_dev_resume’ defined but not used [-Wunused-function] sound/soc/codecs/rt1308-sdw.c:676:12: warning: ‘rt1308_dev_suspend’ defined but not used [-Wunused-function] Fixes: a87a665 ("ASoC: rt1308-sdw: add rt1308 SdW amplifier driver") Signed-off-by: Takashi Iwai <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent 67e69e1 commit faa37a9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sound/soc/codecs/rt1308-sdw.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -673,7 +673,7 @@ static const struct sdw_device_id rt1308_id[] = {
673673
};
674674
MODULE_DEVICE_TABLE(sdw, rt1308_id);
675675

676-
static int rt1308_dev_suspend(struct device *dev)
676+
static int __maybe_unused rt1308_dev_suspend(struct device *dev)
677677
{
678678
struct rt1308_sdw_priv *rt1308 = dev_get_drvdata(dev);
679679

@@ -687,7 +687,7 @@ static int rt1308_dev_suspend(struct device *dev)
687687

688688
#define RT1308_PROBE_TIMEOUT 2000
689689

690-
static int rt1308_dev_resume(struct device *dev)
690+
static int __maybe_unused rt1308_dev_resume(struct device *dev)
691691
{
692692
struct sdw_slave *slave = dev_to_sdw_dev(dev);
693693
struct rt1308_sdw_priv *rt1308 = dev_get_drvdata(dev);

0 commit comments

Comments
 (0)