Commit 4099c329 authored by Takashi Iwai's avatar Takashi Iwai Committed by Mark Brown

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: d1ede064 ("ASoC: rt715: add RT715 codec driver")
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
Link: https://lore.kernel.org/r/20200127192831.14057-5-tiwai@suse.deSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent 973649d3
...@@ -549,7 +549,7 @@ static const struct sdw_device_id rt715_id[] = { ...@@ -549,7 +549,7 @@ static const struct sdw_device_id rt715_id[] = {
}; };
MODULE_DEVICE_TABLE(sdw, rt715_id); MODULE_DEVICE_TABLE(sdw, rt715_id);
static int rt715_dev_suspend(struct device *dev) static int __maybe_unused rt715_dev_suspend(struct device *dev)
{ {
struct rt715_priv *rt715 = dev_get_drvdata(dev); struct rt715_priv *rt715 = dev_get_drvdata(dev);
...@@ -563,7 +563,7 @@ static int rt715_dev_suspend(struct device *dev) ...@@ -563,7 +563,7 @@ static int rt715_dev_suspend(struct device *dev)
#define RT715_PROBE_TIMEOUT 2000 #define RT715_PROBE_TIMEOUT 2000
static int rt715_dev_resume(struct device *dev) static int __maybe_unused rt715_dev_resume(struct device *dev)
{ {
struct sdw_slave *slave = dev_to_sdw_dev(dev); struct sdw_slave *slave = dev_to_sdw_dev(dev);
struct rt715_priv *rt715 = dev_get_drvdata(dev); struct rt715_priv *rt715 = 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