From: Jason Gerecke <killert...@gmail.com> As suggested in the prior patch, we manually set hdev->claimed with the necessary flag value (which is hardcoded since HID_CLAIMED_DRIVER is not available in 3.17)
Signed-off-by: Jason Gerecke <killert...@gmail.com> --- 3.17/wacom.h | 1 + 3.17/wacom_sys.c | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/3.17/wacom.h b/3.17/wacom.h index 0cc5344..5adde6c 100644 --- a/3.17/wacom.h +++ b/3.17/wacom.h @@ -93,6 +93,7 @@ #include <linux/usb/input.h> #include <linux/power_supply.h> #include <asm/unaligned.h> +#include <linux/version.h> /* * Version Information diff --git a/3.17/wacom_sys.c b/3.17/wacom_sys.c index dd288b2..03924e1 100644 --- a/3.17/wacom_sys.c +++ b/3.17/wacom_sys.c @@ -1455,7 +1455,11 @@ static int wacom_probe(struct hid_device *hdev, wacom_query_tablet_data(hdev, features); if (features->type == HID_GENERIC) +#if LINUX_VERSION_CODE <= KERNEL_VERSION(3,18,0) + hdev->claimed |= 8; /* HID_CLAIMED_DRIVER */ +#else connect_mask |= HID_CONNECT_DRIVER; +#endif /* Regular HID work starts now */ error = hid_hw_start(hdev, connect_mask); -- 2.1.3 ------------------------------------------------------------------------------ Dive into the World of Parallel Programming! The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net _______________________________________________ Linuxwacom-devel mailing list Linuxwacom-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linuxwacom-devel