diff options
Diffstat (limited to 'drivers/input')
-rw-r--r-- | drivers/input/input-polldev.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/input/input-polldev.c b/drivers/input/input-polldev.c index 40cf0b058927..6a2eb399b988 100644 --- a/drivers/input/input-polldev.c +++ b/drivers/input/input-polldev.c | |||
@@ -88,7 +88,9 @@ static int input_open_polled_device(struct input_dev *input) | |||
88 | if (dev->open) | 88 | if (dev->open) |
89 | dev->open(dev); | 89 | dev->open(dev); |
90 | 90 | ||
91 | queue_delayed_work(polldev_wq, &dev->work, 0); | 91 | /* Only start polling if polling is enabled */ |
92 | if (dev->poll_interval > 0) | ||
93 | queue_delayed_work(polldev_wq, &dev->work, 0); | ||
92 | 94 | ||
93 | return 0; | 95 | return 0; |
94 | } | 96 | } |