diff options
author | Benjamin Tissoires <benjamin.tissoires@redhat.com> | 2016-07-13 18:06:11 +0200 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2016-08-05 13:39:19 +0200 |
commit | 589e5060206b97a9602534d19d53264d35cd969f (patch) | |
tree | 4188bd6d26b9f19f1101eeac5c83714f261a348b /drivers/hid/hid-roccat-isku.c | |
parent | HID: wacom: leds: use the ledclass instead of custom made sysfs files (diff) | |
download | linux-589e5060206b97a9602534d19d53264d35cd969f.tar.xz linux-589e5060206b97a9602534d19d53264d35cd969f.zip |
HID: wacom: leds: actually release the LEDs on disconnect
There is a bug (?) in devm_led_classdev_register() in which its increments
the refcount of the parent. If the parent is an input device, that means
the ref count never reaches 0 when devm_input_device_release() gets called.
This means that the LEDs and all the devres resources attached to the
input device are not released.
Manually force the release of the group so that the leds are released once
we are done using them.
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Acked-by: Ping Cheng <pingc@wacom.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/hid/hid-roccat-isku.c')
0 files changed, 0 insertions, 0 deletions