HID: asus: Stop underlying hardware on remove
authorCarlo Caione <[email protected]>
Tue, 30 May 2017 20:39:46 +0000 (22:39 +0200)
committerJiri Kosina <[email protected]>
Fri, 2 Jun 2017 12:13:22 +0000 (14:13 +0200)
commit715e944f8a7a1059db5d61ebf197e6f348d747e2
tree704fc67c91e059925e3681b585290992a0527bd9
parentf3d3eab667de62572376abb1aa26316191c39929
HID: asus: Stop underlying hardware on remove

We are missing a call to hid_hw_stop() on the remove hook.
Among other things this is causing an Oops when (re-)starting GNOME /
upowerd / ... after the module has been already rmmod-ed.

Signed-off-by: Carlo Caione <[email protected]>
Reviewed-by: Benjamin Tissoires <[email protected]>
Signed-off-by: Jiri Kosina <[email protected]>
drivers/hid/hid-asus.c