Commit 809a9b63 authored by Takashi Iwai's avatar Takashi Iwai Committed by Mark Brown

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: 7d2a5f9a ("ASoC: rt700: add rt700 codec driver")
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
Link: https://lore.kernel.org/r/20200127192831.14057-3-tiwai@suse.deSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent faa37a93
...@@ -486,7 +486,7 @@ static const struct sdw_device_id rt700_id[] = { ...@@ -486,7 +486,7 @@ static const struct sdw_device_id rt700_id[] = {
}; };
MODULE_DEVICE_TABLE(sdw, rt700_id); MODULE_DEVICE_TABLE(sdw, rt700_id);
static int rt700_dev_suspend(struct device *dev) static int __maybe_unused rt700_dev_suspend(struct device *dev)
{ {
struct rt700_priv *rt700 = dev_get_drvdata(dev); struct rt700_priv *rt700 = dev_get_drvdata(dev);
...@@ -500,7 +500,7 @@ static int rt700_dev_suspend(struct device *dev) ...@@ -500,7 +500,7 @@ static int rt700_dev_suspend(struct device *dev)
#define RT700_PROBE_TIMEOUT 2000 #define RT700_PROBE_TIMEOUT 2000
static int rt700_dev_resume(struct device *dev) static int __maybe_unused rt700_dev_resume(struct device *dev)
{ {
struct sdw_slave *slave = dev_to_sdw_dev(dev); struct sdw_slave *slave = dev_to_sdw_dev(dev);
struct rt700_priv *rt700 = dev_get_drvdata(dev); struct rt700_priv *rt700 = dev_get_drvdata(dev);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment