linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Input: spear-keyboard - Add CONFIG_PM_SLEEP to suspend/resume functions
@ 2014-10-27 12:32 Jingoo Han
  2014-10-27 23:37 ` 'Dmitry Torokhov'
  0 siblings, 1 reply; 9+ messages in thread
From: Jingoo Han @ 2014-10-27 12:32 UTC (permalink / raw)
  To: 'Dmitry Torokhov'
  Cc: linux-input, 'Jingoo Han', 'Viresh Kumar'

Add CONFIG_PM_SLEEP to suspend/resume functions

Add CONFIG_PM_SLEEP to suspend/resume functions instead of
CONFIG_PM to fix the following build warning when CONFIG_PM_SLEEP
is not selected and CONFIG_PM is selected. This is because sleep
PM callbacks defined by SIMPLE_DEV_PM_OPS are only used when the
CONFIG_PM_SLEEP is enabled.

drivers/input/keyboard/spear-keyboard.c:292:12: warning: 'spear_kbd_suspend' defined but not used [-Wunused-function]
drivers/input/keyboard/spear-keyboard.c:345:12: warning: 'spear_kbd_resume' defined but not used [-Wunused-function]

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
---
 drivers/input/keyboard/spear-keyboard.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/input/keyboard/spear-keyboard.c b/drivers/input/keyboard/spear-keyboard.c
index 258af10..fc93e79 100644
--- a/drivers/input/keyboard/spear-keyboard.c
+++ b/drivers/input/keyboard/spear-keyboard.c
@@ -288,7 +288,7 @@ static int spear_kbd_remove(struct platform_device *pdev)
 	return 0;
 }
 
-#ifdef CONFIG_PM
+#ifdef CONFIG_PM_SLEEP
 static int spear_kbd_suspend(struct device *dev)
 {
 	struct platform_device *pdev = to_platform_device(dev);
-- 
1.7.9.5



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

end of thread, other threads:[~2014-10-28  1:42 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-27 12:32 [PATCH] Input: spear-keyboard - Add CONFIG_PM_SLEEP to suspend/resume functions Jingoo Han
2014-10-27 23:37 ` 'Dmitry Torokhov'
2014-10-28  0:02   ` Jingoo Han
2014-10-28  0:11     ` 'Dmitry Torokhov'
2014-10-28  0:34       ` Jingoo Han
2014-10-28  0:35         ` Dmitry Torokhov
2014-10-28  0:53       ` Jingoo Han
2014-10-28  1:08         ` Dmitry Torokhov
2014-10-28  1:43           ` Jingoo Han

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).