From: Andrew Morton Date: Thu, 1 Oct 2009 22:43:55 +0000 (-0700) Subject: drivers/input/input.c: fix CONFIG_PM=n warning X-Git-Tag: v2.6.32-rc3~54 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1c4115e595dec42aa0e81ba47ef46e35b34ed428;p=platform%2Fkernel%2Flinux-stable.git 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- 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);