Merge tag 'hyperv-next-signed-20201214' of git://git.kernel.org/pub/scm/linux/kernel...
[linux-2.6-microblaze.git] / drivers / input / touchscreen / eeti_ts.c
index 2e1404c..a639ba7 100644 (file)
@@ -241,7 +241,7 @@ static int __maybe_unused eeti_ts_suspend(struct device *dev)
 
        mutex_lock(&input_dev->mutex);
 
-       if (input_dev->users)
+       if (input_device_enabled(input_dev))
                eeti_ts_stop(eeti);
 
        mutex_unlock(&input_dev->mutex);
@@ -263,7 +263,7 @@ static int __maybe_unused eeti_ts_resume(struct device *dev)
 
        mutex_lock(&input_dev->mutex);
 
-       if (input_dev->users)
+       if (input_device_enabled(input_dev))
                eeti_ts_start(eeti);
 
        mutex_unlock(&input_dev->mutex);