All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] mfd: max14577: max14577_{suspend,resume}() should depend on CONFIG_PM_SLEEP
@ 2014-01-26 10:38 Geert Uytterhoeven
  2014-01-26 10:38 ` [PATCH 2/2] mfd: sec-core: sec_pmic_{suspend,resume}() " Geert Uytterhoeven
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Geert Uytterhoeven @ 2014-01-26 10:38 UTC (permalink / raw)
  To: Samuel Ortiz, Lee Jones, Sangbeom Kim, Krzysztof Kozlowski,
	Chanwoo Choi
  Cc: linux-kernel, Geert Uytterhoeven

If CONFIG_PM_SLEEP=n:

drivers/mfd/max14577.c:177: warning: ‘max14577_suspend’ defined but not used
drivers/mfd/max14577.c:200: warning: ‘max14577_resume’ defined but not used

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
---
 drivers/mfd/max14577.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/mfd/max14577.c b/drivers/mfd/max14577.c
index ac514fb2b877..71aa14a6bfbb 100644
--- a/drivers/mfd/max14577.c
+++ b/drivers/mfd/max14577.c
@@ -173,6 +173,7 @@ static const struct i2c_device_id max14577_i2c_id[] = {
 };
 MODULE_DEVICE_TABLE(i2c, max14577_i2c_id);
 
+#ifdef CONFIG_PM_SLEEP
 static int max14577_suspend(struct device *dev)
 {
 	struct i2c_client *i2c = container_of(dev, struct i2c_client, dev);
@@ -208,6 +209,7 @@ static int max14577_resume(struct device *dev)
 
 	return 0;
 }
+#endif /* CONFIG_PM_SLEEP */
 
 static struct of_device_id max14577_dt_match[] = {
 	{ .compatible = "maxim,max14577", },
-- 
1.7.9.5


^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2014-02-03 10:35 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-26 10:38 [PATCH 1/2] mfd: max14577: max14577_{suspend,resume}() should depend on CONFIG_PM_SLEEP Geert Uytterhoeven
2014-01-26 10:38 ` [PATCH 2/2] mfd: sec-core: sec_pmic_{suspend,resume}() " Geert Uytterhoeven
2014-02-03 10:35   ` Lee Jones
2014-01-27  8:28 ` [PATCH 1/2] mfd: max14577: max14577_{suspend,resume}() " Krzysztof Kozlowski
2014-01-27  8:31   ` Geert Uytterhoeven
2014-01-27  9:54     ` Lee Jones
2014-02-03 10:34 ` Lee Jones

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.