[PATCH 6/7] usbnet: do not initialize ethernet device from usb device
Sascha Hauer
s.hauer at pengutronix.de
Mon Apr 4 09:09:44 EDT 2011
The network layer will initialize this correctly for us.
Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
---
drivers/net/usb/usbnet.c | 1 -
1 files changed, 0 insertions(+), 1 deletions(-)
diff --git a/drivers/net/usb/usbnet.c b/drivers/net/usb/usbnet.c
index 983d464..cd658ed 100644
--- a/drivers/net/usb/usbnet.c
+++ b/drivers/net/usb/usbnet.c
@@ -206,7 +206,6 @@ int usbnet_probe(struct usb_device *usbdev, const struct usb_device_id *prod)
edev->recv = usbnet_recv,
edev->halt = usbnet_halt,
edev->priv = undev;
- edev->dev = usbdev->dev; /* will be overwritten by eth_register */
info = (struct driver_info *)prod->driver_info;
undev->driver_info = info;
--
1.7.2.3
More information about the barebox
mailing list