net: cdc_ncm: remove probe and disconnect wrappers
These functions were merely wrappers around the usbnet variants. Remove them. Cc: Alexey Orishko <alexey.orishko@gmail.com> Signed-off-by: Bjørn Mork <bjorn@mork.no> Signed-off-by: David S. Miller <davem@davemloft.net>hifive-unleashed-5.1
parent
4d619f625a
commit
085e50e1fe
|
@ -1141,22 +1141,6 @@ static int cdc_ncm_check_connect(struct usbnet *dev)
|
||||||
return !ctx->connected;
|
return !ctx->connected;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
|
||||||
cdc_ncm_probe(struct usb_interface *udev, const struct usb_device_id *prod)
|
|
||||||
{
|
|
||||||
return usbnet_probe(udev, prod);
|
|
||||||
}
|
|
||||||
|
|
||||||
static void cdc_ncm_disconnect(struct usb_interface *intf)
|
|
||||||
{
|
|
||||||
struct usbnet *dev = usb_get_intfdata(intf);
|
|
||||||
|
|
||||||
if (dev == NULL)
|
|
||||||
return; /* already disconnected */
|
|
||||||
|
|
||||||
usbnet_disconnect(intf);
|
|
||||||
}
|
|
||||||
|
|
||||||
static const struct driver_info cdc_ncm_info = {
|
static const struct driver_info cdc_ncm_info = {
|
||||||
.description = "CDC NCM",
|
.description = "CDC NCM",
|
||||||
.flags = FLAG_POINTTOPOINT | FLAG_NO_SETINT | FLAG_MULTI_PACKET,
|
.flags = FLAG_POINTTOPOINT | FLAG_NO_SETINT | FLAG_MULTI_PACKET,
|
||||||
|
@ -1267,8 +1251,8 @@ MODULE_DEVICE_TABLE(usb, cdc_devs);
|
||||||
static struct usb_driver cdc_ncm_driver = {
|
static struct usb_driver cdc_ncm_driver = {
|
||||||
.name = "cdc_ncm",
|
.name = "cdc_ncm",
|
||||||
.id_table = cdc_devs,
|
.id_table = cdc_devs,
|
||||||
.probe = cdc_ncm_probe,
|
.probe = usbnet_probe,
|
||||||
.disconnect = cdc_ncm_disconnect,
|
.disconnect = usbnet_disconnect,
|
||||||
.suspend = usbnet_suspend,
|
.suspend = usbnet_suspend,
|
||||||
.resume = usbnet_resume,
|
.resume = usbnet_resume,
|
||||||
.reset_resume = usbnet_resume,
|
.reset_resume = usbnet_resume,
|
||||||
|
|
Loading…
Reference in New Issue