]> git.baikalelectronics.ru Git - kernel.git/commit
HID: wacom: Unregister sysfs attributes on remove
authorDavid Herrmann <dh.herrmann@googlemail.com>
Mon, 5 Sep 2011 16:45:29 +0000 (18:45 +0200)
committerJiri Kosina <jkosina@suse.cz>
Wed, 7 Sep 2011 11:32:35 +0000 (13:32 +0200)
commitb5a8da16eecfc40e0341c0d7b5c1d58bc4d3c2a0
tree40d0ffa5eeef69bd9a83d6db6c50f335dfb07f4e
parentd0d4a95a384644d1f54e81c942759b92a23fa77e
HID: wacom: Unregister sysfs attributes on remove

HID devices can be hotplugged so we should unregister all sysfs attributes when
removing a driver. Otherwise, manually unloading the wacom-driver will not
remove the sysfs attributes. Only when the device is disconnected, they are
removed, eventually.

Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-wacom.c