Skip to content

Commit 163a7fb

Browse files
marcusfolkessonJiri Kosina
authored andcommitted
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 <[email protected]> Signed-off-by: Jiri Kosina <[email protected]>
1 parent 989f7cc commit 163a7fb

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

drivers/hid/hid-elan.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -507,11 +507,6 @@ static int elan_probe(struct hid_device *hdev, const struct hid_device_id *id)
507507
return ret;
508508
}
509509

510-
static void elan_remove(struct hid_device *hdev)
511-
{
512-
hid_hw_stop(hdev);
513-
}
514-
515510
static const struct hid_device_id elan_devices[] = {
516511
{ HID_USB_DEVICE(USB_VENDOR_ID_ELAN, USB_DEVICE_ID_HP_X2),
517512
.driver_data = ELAN_HAS_LED },
@@ -529,7 +524,6 @@ static struct hid_driver elan_driver = {
529524
.input_configured = elan_input_configured,
530525
.raw_event = elan_raw_event,
531526
.probe = elan_probe,
532-
.remove = elan_remove,
533527
};
534528

535529
module_hid_driver(elan_driver);

0 commit comments

Comments
 (0)