mirror of
https://github.com/torvalds/linux.git
synced 2024-11-10 14:11:52 +00:00
HID: hid-elan: use default remove for hid device
hid_device_remove() will call hid_hw_stop() as default .remove function if no function is specified. Signed-off-by: Marcus Folkesson <marcus.folkesson@gmail.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
This commit is contained in:
parent
989f7cc94f
commit
163a7fbff7
@ -507,11 +507,6 @@ err:
|
||||
return ret;
|
||||
}
|
||||
|
||||
static void elan_remove(struct hid_device *hdev)
|
||||
{
|
||||
hid_hw_stop(hdev);
|
||||
}
|
||||
|
||||
static const struct hid_device_id elan_devices[] = {
|
||||
{ HID_USB_DEVICE(USB_VENDOR_ID_ELAN, USB_DEVICE_ID_HP_X2),
|
||||
.driver_data = ELAN_HAS_LED },
|
||||
@ -529,7 +524,6 @@ static struct hid_driver elan_driver = {
|
||||
.input_configured = elan_input_configured,
|
||||
.raw_event = elan_raw_event,
|
||||
.probe = elan_probe,
|
||||
.remove = elan_remove,
|
||||
};
|
||||
|
||||
module_hid_driver(elan_driver);
|
||||
|
Loading…
Reference in New Issue
Block a user