diff options
author | David Herrmann <dh.herrmann@googlemail.com> | 2011-09-05 18:45:29 +0200 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2011-09-07 13:32:35 +0200 |
commit | 9086617ea3a7f3e574ca64392b827bdd56f607eb (patch) | |
tree | 40d0ffa5eeef69bd9a83d6db6c50f335dfb07f4e /drivers/hid | |
parent | dde58cfcc3b6dd2f160ffd355f76ae526155a4df (diff) | |
download | linux-3.10-9086617ea3a7f3e574ca64392b827bdd56f607eb.tar.gz linux-3.10-9086617ea3a7f3e574ca64392b827bdd56f607eb.tar.bz2 linux-3.10-9086617ea3a7f3e574ca64392b827bdd56f607eb.zip |
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>
Diffstat (limited to 'drivers/hid')
-rw-r--r-- | drivers/hid/hid-wacom.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/hid/hid-wacom.c b/drivers/hid/hid-wacom.c index f66a597cff6..a597039d075 100644 --- a/drivers/hid/hid-wacom.c +++ b/drivers/hid/hid-wacom.c @@ -423,6 +423,7 @@ static void wacom_remove(struct hid_device *hdev) #ifdef CONFIG_HID_WACOM_POWER_SUPPLY struct wacom_data *wdata = hid_get_drvdata(hdev); #endif + device_remove_file(&hdev->dev, &dev_attr_speed); hid_hw_stop(hdev); #ifdef CONFIG_HID_WACOM_POWER_SUPPLY |