* [PATCH] ASoC: max98090: Fix build warning when CONFIG_PM_RUNTIME is not set
@ 2013-05-02 8:00 Axel Lin
2013-05-02 9:00 ` Mark Brown
0 siblings, 1 reply; 2+ messages in thread
From: Axel Lin @ 2013-05-02 8:00 UTC (permalink / raw)
To: Mark Brown; +Cc: alsa-devel, Liam Girdwood, Kuninori Morimoto
Fix below build warning when CONFIG_PM_RUNTIME is not set.
CC [M] sound/soc/codecs/max98090.o
sound/soc/codecs/max98090.c:2339:12: warning: 'max98090_runtime_resume' defined but not used [-Wunused-function]
sound/soc/codecs/max98090.c:2350:12: warning: 'max98090_runtime_suspend' defined but not used [-Wunused-function]
Signed-off-by: Axel Lin <axel.lin@ingics.com>
---
sound/soc/codecs/max98090.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/sound/soc/codecs/max98090.c b/sound/soc/codecs/max98090.c
index ce0d364..4f39a50 100644
--- a/sound/soc/codecs/max98090.c
+++ b/sound/soc/codecs/max98090.c
@@ -2336,6 +2336,7 @@ static int max98090_i2c_remove(struct i2c_client *client)
return 0;
}
+#ifdef CONFIG_PM_RUNTIME
static int max98090_runtime_resume(struct device *dev)
{
struct max98090_priv *max98090 = dev_get_drvdata(dev);
@@ -2355,6 +2356,7 @@ static int max98090_runtime_suspend(struct device *dev)
return 0;
}
+#endif
static const struct dev_pm_ops max98090_pm = {
SET_RUNTIME_PM_OPS(max98090_runtime_suspend,
--
1.8.1.2
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] ASoC: max98090: Fix build warning when CONFIG_PM_RUNTIME is not set
2013-05-02 8:00 [PATCH] ASoC: max98090: Fix build warning when CONFIG_PM_RUNTIME is not set Axel Lin
@ 2013-05-02 9:00 ` Mark Brown
0 siblings, 0 replies; 2+ messages in thread
From: Mark Brown @ 2013-05-02 9:00 UTC (permalink / raw)
To: Axel Lin; +Cc: alsa-devel, Liam Girdwood, Kuninori Morimoto
[-- Attachment #1.1: Type: text/plain, Size: 419 bytes --]
On Thu, May 02, 2013 at 04:00:58PM +0800, Axel Lin wrote:
> Fix below build warning when CONFIG_PM_RUNTIME is not set.
>
> CC [M] sound/soc/codecs/max98090.o
> sound/soc/codecs/max98090.c:2339:12: warning: 'max98090_runtime_resume' defined but not used [-Wunused-function]
> sound/soc/codecs/max98090.c:2350:12: warning: 'max98090_runtime_suspend' defined but not used [-Wunused-function]
Applied, thanks.
[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
[-- Attachment #2: Type: text/plain, Size: 0 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-05-02 9:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-02 8:00 [PATCH] ASoC: max98090: Fix build warning when CONFIG_PM_RUNTIME is not set Axel Lin
2013-05-02 9:00 ` Mark Brown
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.