diff options
Diffstat (limited to 'drivers/input/input.c')
-rw-r--r-- | drivers/input/input.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/input/input.c b/drivers/input/input.c index e828aab7dace..c6f88ebb40c7 100644 --- a/drivers/input/input.c +++ b/drivers/input/input.c | |||
@@ -17,6 +17,7 @@ | |||
17 | #include <linux/random.h> | 17 | #include <linux/random.h> |
18 | #include <linux/major.h> | 18 | #include <linux/major.h> |
19 | #include <linux/proc_fs.h> | 19 | #include <linux/proc_fs.h> |
20 | #include <linux/sched.h> | ||
20 | #include <linux/seq_file.h> | 21 | #include <linux/seq_file.h> |
21 | #include <linux/poll.h> | 22 | #include <linux/poll.h> |
22 | #include <linux/device.h> | 23 | #include <linux/device.h> |
@@ -1273,6 +1274,7 @@ static int input_dev_uevent(struct device *device, struct kobj_uevent_env *env) | |||
1273 | } \ | 1274 | } \ |
1274 | } while (0) | 1275 | } while (0) |
1275 | 1276 | ||
1277 | #ifdef CONFIG_PM | ||
1276 | static void input_dev_reset(struct input_dev *dev, bool activate) | 1278 | static void input_dev_reset(struct input_dev *dev, bool activate) |
1277 | { | 1279 | { |
1278 | if (!dev->event) | 1280 | if (!dev->event) |
@@ -1287,7 +1289,6 @@ static void input_dev_reset(struct input_dev *dev, bool activate) | |||
1287 | } | 1289 | } |
1288 | } | 1290 | } |
1289 | 1291 | ||
1290 | #ifdef CONFIG_PM | ||
1291 | static int input_dev_suspend(struct device *dev) | 1292 | static int input_dev_suspend(struct device *dev) |
1292 | { | 1293 | { |
1293 | struct input_dev *input_dev = to_input_dev(dev); | 1294 | struct input_dev *input_dev = to_input_dev(dev); |