Skip to content

Commit

Permalink
ASoC: cs43130: Fix unused compiler warnings for PM runtime
Browse files Browse the repository at this point in the history
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 <tiwai@suse.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
  • Loading branch information
Takashi Iwai authored and Mark Brown committed Sep 4, 2017
1 parent f31877a commit 7051334
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sound/soc/codecs/cs43130.c
Original file line number Diff line number Diff line change
Expand Up @@ -2597,7 +2597,7 @@ static int cs43130_i2c_remove(struct i2c_client *client)
return 0;
}

static int cs43130_runtime_suspend(struct device *dev)
static int __maybe_unused cs43130_runtime_suspend(struct device *dev)
{
struct cs43130_private *cs43130 = dev_get_drvdata(dev);

Expand All @@ -2616,7 +2616,7 @@ static int cs43130_runtime_suspend(struct device *dev)
return 0;
}

static int cs43130_runtime_resume(struct device *dev)
static int __maybe_unused cs43130_runtime_resume(struct device *dev)
{
struct cs43130_private *cs43130 = dev_get_drvdata(dev);
int ret;
Expand Down

0 comments on commit 7051334

Please sign in to comment.