diff options
author | Marcus Folkesson <marcus.folkesson@gmail.com> | 2022-11-17 13:13:14 +0100 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2022-11-21 22:17:10 +0100 |
commit | 163a7fbff7a78c7c055e6c0ad26124ae551fe313 (patch) | |
tree | d3c15ed252d845aa89d47b1167e8baa1986caebb /drivers/hid/hid-elan.c | |
parent | 989f7cc94f1174269282a4a46bb735c7f11527de (diff) | |
download | linux-stable-163a7fbff7a78c7c055e6c0ad26124ae551fe313.tar.gz linux-stable-163a7fbff7a78c7c055e6c0ad26124ae551fe313.tar.bz2 linux-stable-163a7fbff7a78c7c055e6c0ad26124ae551fe313.zip |
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>
Diffstat (limited to 'drivers/hid/hid-elan.c')
-rw-r--r-- | drivers/hid/hid-elan.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/hid/hid-elan.c b/drivers/hid/hid-elan.c index 8e4a5528e25d..76d93fc48f6a 100644 --- a/drivers/hid/hid-elan.c +++ b/drivers/hid/hid-elan.c @@ -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); |