drivers/input/input.c: fix CONFIG_PM=n warning

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Linux Kernel Mailing List
Date: Thursday, October 1, 2009 - 8:59 pm

Gitweb:     http://git.kernel.org/linus/1c4115e595dec42aa0e81ba47ef46e35b34ed428
Commit:     1c4115e595dec42aa0e81ba47ef46e35b34ed428
Parent:     3ae91c21dd29e413f4111978152c14061f0984b0
Author:     Andrew Morton <akpm@linux-foundation.org>
AuthorDate: Thu Oct 1 15:43:55 2009 -0700
Committer:  Linus Torvalds <torvalds@linux-foundation.org>
CommitDate: Thu Oct 1 16:11:11 2009 -0700

    drivers/input/input.c: fix CONFIG_PM=n warning
    
    drivers/input/input.c:1277: warning: 'input_dev_reset' defined but not used
    
    Acked-by: Dmitry Torokhov <dtor@mail.ru>
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
---
 drivers/input/input.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/input/input.c b/drivers/input/input.c
index e828aab..16ec33f 100644
--- a/drivers/input/input.c
+++ b/drivers/input/input.c
@@ -1273,6 +1273,7 @@ static int input_dev_uevent(struct device *device, struct kobj_uevent_env *env)
 		}						\
 	} while (0)
 
+#ifdef CONFIG_PM
 static void input_dev_reset(struct input_dev *dev, bool activate)
 {
 	if (!dev->event)
@@ -1287,7 +1288,6 @@ static void input_dev_reset(struct input_dev *dev, bool activate)
 	}
 }
 
-#ifdef CONFIG_PM
 static int input_dev_suspend(struct device *dev)
 {
 	struct input_dev *input_dev = to_input_dev(dev);
--
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
drivers/input/input.c: fix CONFIG_PM=n warning, Linux Kernel Mailing ..., (Thu Oct 1, 8:59 pm)