The need to call 'wacom_intuos_schedule_prox_event' by Intuos devices that
have not recieved an ID packet extends beyond just the Intuos Draw. Since
the 'intuos_prox_event_worker' workqueue is only initialized for Wacom
devices, this will cause a kernel WARNING when devices other than the Draw
try to schedule the worker. This patch initializes the workqueue for all
Intuos devices to prevent this WARNING from occuring.

Signed-off-by: Jason Gerecke <jason.gere...@wacom.com>
---
 3.17/wacom_wac.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/3.17/wacom_wac.c b/3.17/wacom_wac.c
index c88d52a..28378c7 100644
--- a/3.17/wacom_wac.c
+++ b/3.17/wacom_wac.c
@@ -2372,6 +2372,9 @@ static void wacom_setup_intuos(struct wacom_wac 
*wacom_wac)
        input_set_abs_params(input_dev, ABS_RZ, -900, 899, 0, 0);
        input_abs_set_res(input_dev, ABS_RZ, 287);
        input_set_abs_params(input_dev, ABS_THROTTLE, -1023, 1023, 0, 0);
+
+       INIT_WORK(&wacom_wac->intuos_prox_event_worker,
+                 wacom_intuos_schedule_prox_event);
 }
 
 void wacom_setup_device_quirks(struct wacom *wacom)
-- 
2.7.3


------------------------------------------------------------------------------
_______________________________________________
Linuxwacom-devel mailing list
Linuxwacom-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxwacom-devel

Reply via email to