Skip to content

Commit 4099c32

Browse files
tiwaibroonie
authored andcommitted
ASoC: rt715: Add __maybe_unused to PM callbacks
Fix the compile warnings by adding __maybe_unused to PM callbacks: sound/soc/codecs/rt715-sdw.c:566:12: warning: ‘rt715_dev_resume’ defined but not used [-Wunused-function] sound/soc/codecs/rt715-sdw.c:552:12: warning: ‘rt715_dev_suspend’ defined but not used [-Wunused-function] Fixes: d1ede06 ("ASoC: rt715: add RT715 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 973649d commit 4099c32

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sound/soc/codecs/rt715-sdw.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -549,7 +549,7 @@ static const struct sdw_device_id rt715_id[] = {
549549
};
550550
MODULE_DEVICE_TABLE(sdw, rt715_id);
551551

552-
static int rt715_dev_suspend(struct device *dev)
552+
static int __maybe_unused rt715_dev_suspend(struct device *dev)
553553
{
554554
struct rt715_priv *rt715 = dev_get_drvdata(dev);
555555

@@ -563,7 +563,7 @@ static int rt715_dev_suspend(struct device *dev)
563563

564564
#define RT715_PROBE_TIMEOUT 2000
565565

566-
static int rt715_dev_resume(struct device *dev)
566+
static int __maybe_unused rt715_dev_resume(struct device *dev)
567567
{
568568
struct sdw_slave *slave = dev_to_sdw_dev(dev);
569569
struct rt715_priv *rt715 = dev_get_drvdata(dev);

0 commit comments

Comments
 (0)