Skip to content

Commit 7051334

Browse files
tiwaibroonie
authored andcommitted
ASoC: cs43130: Fix unused compiler warnings for PM runtime
Add __maybe_unused prefix for addressing the following warnings: sound/soc/codecs/cs43130.c:2615:12: warning: ‘cs43130_runtime_resume’ defined but not used [-Wunused-function] sound/soc/codecs/cs43130.c:2596:12: warning: ‘cs43130_runtime_suspend’ defined but not used [-Wunused-function] Fixes: 8f1e5bf ("ASoC: cs43130: Add support for CS43130 codec") Signed-off-by: Takashi Iwai <[email protected]> Signed-off-by: Mark Brown <[email protected]>
1 parent f31877a commit 7051334

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sound/soc/codecs/cs43130.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2597,7 +2597,7 @@ static int cs43130_i2c_remove(struct i2c_client *client)
25972597
return 0;
25982598
}
25992599

2600-
static int cs43130_runtime_suspend(struct device *dev)
2600+
static int __maybe_unused cs43130_runtime_suspend(struct device *dev)
26012601
{
26022602
struct cs43130_private *cs43130 = dev_get_drvdata(dev);
26032603

@@ -2616,7 +2616,7 @@ static int cs43130_runtime_suspend(struct device *dev)
26162616
return 0;
26172617
}
26182618

2619-
static int cs43130_runtime_resume(struct device *dev)
2619+
static int __maybe_unused cs43130_runtime_resume(struct device *dev)
26202620
{
26212621
struct cs43130_private *cs43130 = dev_get_drvdata(dev);
26222622
int ret;

0 commit comments

Comments
 (0)