Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

HID: hid-alps: 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>

authored by

Marcus Folkesson and committed by
Jiri Kosina
989f7cc9 9c730fe1

-6
-6
drivers/hid/hid-alps.c
··· 820 820 return 0; 821 821 } 822 822 823 - static void alps_remove(struct hid_device *hdev) 824 - { 825 - hid_hw_stop(hdev); 826 - } 827 - 828 823 static const struct hid_device_id alps_id[] = { 829 824 { HID_DEVICE(HID_BUS_ANY, HID_GROUP_ANY, 830 825 USB_VENDOR_ID_ALPS_JP, HID_DEVICE_ID_ALPS_U1_DUAL) }, ··· 837 842 .name = "hid-alps", 838 843 .id_table = alps_id, 839 844 .probe = alps_probe, 840 - .remove = alps_remove, 841 845 .raw_event = alps_raw_event, 842 846 .input_mapping = alps_input_mapping, 843 847 .input_configured = alps_input_configured,