summaryrefslogtreecommitdiff
path: root/drivers/input/input-poller.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/input/input-poller.c')
-rw-r--r--drivers/input/input-poller.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/input-poller.c b/drivers/input/input-poller.c
index 7d6b4e8879f1..688e3cb1c2a0 100644
--- a/drivers/input/input-poller.c
+++ b/drivers/input/input-poller.c
@@ -166,7 +166,7 @@ static ssize_t input_dev_set_poll_interval(struct device *dev,
poller->poll_interval = interval;
- if (input->users) {
+ if (input_device_enabled(input)) {
cancel_delayed_work_sync(&poller->work);
if (poller->poll_interval > 0)
input_dev_poller_queue_work(poller);