Skip to content

Commit 973649d

Browse files
tiwaibroonie
authored andcommitted
ASoC: rt711: Add __maybe_unused to PM callbacks
Fix the compile warnings by adding __maybe_unused to PM callbacks: sound/soc/codecs/rt711-sdw.c:504:12: warning: ‘rt711_dev_resume’ defined but not used [-Wunused-function] sound/soc/codecs/rt711-sdw.c:490:12: warning: ‘rt711_dev_suspend’ defined but not used [-Wunused-function] Fixes: 320b8b0 ("ASoC: rt711: add rt711 codec 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 809a9b6 commit 973649d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sound/soc/codecs/rt711-sdw.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,7 @@ static const struct sdw_device_id rt711_id[] = {
487487
};
488488
MODULE_DEVICE_TABLE(sdw, rt711_id);
489489

490-
static int rt711_dev_suspend(struct device *dev)
490+
static int __maybe_unused rt711_dev_suspend(struct device *dev)
491491
{
492492
struct rt711_priv *rt711 = dev_get_drvdata(dev);
493493

@@ -501,7 +501,7 @@ static int rt711_dev_suspend(struct device *dev)
501501

502502
#define RT711_PROBE_TIMEOUT 2000
503503

504-
static int rt711_dev_resume(struct device *dev)
504+
static int __maybe_unused rt711_dev_resume(struct device *dev)
505505
{
506506
struct sdw_slave *slave = dev_to_sdw_dev(dev);
507507
struct rt711_priv *rt711 = dev_get_drvdata(dev);

0 commit comments

Comments
 (0)