HID: wacom - return ENODEV for failed wacom_setup_pad_input_capabilities
authorPing Cheng <pinglinux@gmail.com>
Tue, 18 Nov 2014 21:27:48 +0000 (13:27 -0800)
committerJiri Kosina <jkosina@suse.cz>
Thu, 20 Nov 2014 16:28:42 +0000 (17:28 +0100)
commitb3c8e93f99a7f9453be54549ae362b603c42188c
tree246f3c6b371b2defa2e5f1b5306ef281687b676b
parentfefb391f8c15900477432a29d9c3527dd66a8415
HID: wacom - return ENODEV for failed wacom_setup_pad_input_capabilities

ENODEV indicates no device is added. Hence, the associated pad input device
is simply freed.

Signed-off-by: Ping Cheng <pingc@wacom.com>
Reviewed-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/wacom_wac.c