aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
Diffstat (limited to 'net')
-rw-r--r--net/caif/caif_usb.c13
1 files changed, 3 insertions, 10 deletions
diff --git a/net/caif/caif_usb.c b/net/caif/caif_usb.c
index 582f80c8ef3..3ebc8cbc91f 100644
--- a/net/caif/caif_usb.c
+++ b/net/caif/caif_usb.c
@@ -128,17 +128,10 @@ static int cfusbl_device_notify(struct notifier_block *me, unsigned long what,
128 struct cflayer *layer, *link_support; 128 struct cflayer *layer, *link_support;
129 struct usbnet *usbnet; 129 struct usbnet *usbnet;
130 struct usb_device *usbdev; 130 struct usb_device *usbdev;
131 struct ethtool_drvinfo drvinfo;
132 131
133 /* 132 /* Check whether we have a NCM device, and find its VID/PID. */
134 * Quirks: High-jack ethtool to find if we have a NCM device, 133 if (!(dev->dev.parent && dev->dev.parent->driver &&
135 * and find it's VID/PID. 134 strcmp(dev->dev.parent->driver->name, "cdc_ncm") == 0))
136 */
137 if (dev->ethtool_ops == NULL || dev->ethtool_ops->get_drvinfo == NULL)
138 return 0;
139
140 dev->ethtool_ops->get_drvinfo(dev, &drvinfo);
141 if (strncmp(drvinfo.driver, "cdc_ncm", 7) != 0)
142 return 0; 135 return 0;
143 136
144 usbnet = netdev_priv(dev); 137 usbnet = netdev_priv(dev);