提交 a6f26e4b 编写于 作者: P Paulius Zaleckas 提交者: David S. Miller

hso: remove claiming and releasing of USB interface

No need to reclaim the same USB interface beeing probed.
Releasing interface does nothing also.

This is already in for a long time in off-kernel hso driver
and no regresions were noticed for this change.
Signed-off-by: NPaulius Zaleckas <paulius.zaleckas@teltonika.lt>
Cc: Denis Joseph Barrow <D.Barow@option.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 6ceffd47
......@@ -2978,8 +2978,6 @@ static int hso_probe(struct usb_interface *interface,
goto exit;
}
usb_driver_claim_interface(&hso_driver, interface, hso_dev);
/* save our data pointer in this device */
usb_set_intfdata(interface, hso_dev);
......@@ -2997,8 +2995,6 @@ static void hso_disconnect(struct usb_interface *interface)
/* remove reference of our private data */
usb_set_intfdata(interface, NULL);
usb_driver_release_interface(&hso_driver, interface);
}
static void async_get_intf(struct work_struct *data)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册