Skip to content

Commit 809a9b6

Browse files
tiwaibroonie
authored andcommitted
ASoC: rt700: Add __maybe_unused to PM callbacks
Fix the compile warnings by adding __maybe_unused to PM callbacks: sound/soc/codecs/rt700-sdw.c:503:12: warning: ‘rt700_dev_resume’ defined but not used [-Wunused-function] sound/soc/codecs/rt700-sdw.c:489:12: warning: ‘rt700_dev_suspend’ defined but not used [-Wunused-function] Fixes: 7d2a5f9 ("ASoC: rt700: add rt700 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 faa37a9 commit 809a9b6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sound/soc/codecs/rt700-sdw.c

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

489-
static int rt700_dev_suspend(struct device *dev)
489+
static int __maybe_unused rt700_dev_suspend(struct device *dev)
490490
{
491491
struct rt700_priv *rt700 = dev_get_drvdata(dev);
492492

@@ -500,7 +500,7 @@ static int rt700_dev_suspend(struct device *dev)
500500

501501
#define RT700_PROBE_TIMEOUT 2000
502502

503-
static int rt700_dev_resume(struct device *dev)
503+
static int __maybe_unused rt700_dev_resume(struct device *dev)
504504
{
505505
struct sdw_slave *slave = dev_to_sdw_dev(dev);
506506
struct rt700_priv *rt700 = dev_get_drvdata(dev);

0 commit comments

Comments
 (0)