summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJiri Kosina <jkosina@suse.cz>2014-11-03 14:19:14 +0100
committerJiri Kosina <jkosina@suse.cz>2014-11-03 14:19:14 +0100
commit1e48d542e751f766d0ff03aa97bef22d90a98041 (patch)
treec8fce762f1176aff41f720fad9666fea0248b794
parent1a3f83f6493f9d78aa0fe31401fd530b0fe296da (diff)
HID: plantronics: remove superfluous .probe()
Remove redundanct probe() callback, as it isn't doing anything extra that HID core wouldn't do by default. Reported-by: Benjamin Tissoires <benjamin.tissoires@gmail.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
-rw-r--r--drivers/hid/hid-plantronics.c23
1 files changed, 0 insertions, 23 deletions
diff --git a/drivers/hid/hid-plantronics.c b/drivers/hid/hid-plantronics.c
index 215cdbd10dea..2180e0789b76 100644
--- a/drivers/hid/hid-plantronics.c
+++ b/drivers/hid/hid-plantronics.c
@@ -36,28 +36,6 @@ static int plantronics_input_mapping(struct hid_device *hdev,
return -1;
}
-static int plantronics_probe(struct hid_device *hdev,
- const struct hid_device_id *id)
-{
- int ret;
-
- ret = hid_parse(hdev);
- if (ret) {
- hid_err(hdev, "parse failed\n");
- goto err;
- }
-
- ret = hid_hw_start(hdev, HID_CONNECT_DEFAULT);
- if (ret) {
- hid_err(hdev, "hw start failed\n");
- goto err;
- }
-
- return 0;
- err:
- return ret;
-}
-
static const struct hid_device_id plantronics_devices[] = {
{ HID_USB_DEVICE(USB_VENDOR_ID_PLANTRONICS, HID_ANY_ID) },
{ }
@@ -68,7 +46,6 @@ static struct hid_driver plantronics_driver = {
.name = "plantronics",
.id_table = plantronics_devices,
.input_mapping = plantronics_input_mapping,
- .probe = plantronics_probe,
};
module_hid_driver(plantronics_driver);