usbnet.c (720f3d7cb19eb27f85f72836c8f8004ccb257f39) | usbnet.c (a4723848d05dd31d298c551fb77ad28481309999) |
---|---|
1/* 2 * USB Network driver infrastructure 3 * Copyright (C) 2000-2005 by David Brownell 4 * Copyright (C) 2003-2005 David Hollis <dhollis@davehollis.com> 5 * 6 * This program is free software; you can redistribute it and/or modify 7 * it under the terms of the GNU General Public License as published by 8 * the Free Software Foundation; either version 2 of the License, or --- 1430 unchanged lines hidden (view full) --- 1439 1440 if ((dev->driver_info->flags & FLAG_WLAN) != 0) 1441 SET_NETDEV_DEVTYPE(net, &wlan_type); 1442 if ((dev->driver_info->flags & FLAG_WWAN) != 0) 1443 SET_NETDEV_DEVTYPE(net, &wwan_type); 1444 1445 status = register_netdev (net); 1446 if (status) | 1/* 2 * USB Network driver infrastructure 3 * Copyright (C) 2000-2005 by David Brownell 4 * Copyright (C) 2003-2005 David Hollis <dhollis@davehollis.com> 5 * 6 * This program is free software; you can redistribute it and/or modify 7 * it under the terms of the GNU General Public License as published by 8 * the Free Software Foundation; either version 2 of the License, or --- 1430 unchanged lines hidden (view full) --- 1439 1440 if ((dev->driver_info->flags & FLAG_WLAN) != 0) 1441 SET_NETDEV_DEVTYPE(net, &wlan_type); 1442 if ((dev->driver_info->flags & FLAG_WWAN) != 0) 1443 SET_NETDEV_DEVTYPE(net, &wwan_type); 1444 1445 status = register_netdev (net); 1446 if (status) |
1447 goto out3; | 1447 goto out4; |
1448 netif_info(dev, probe, dev->net, 1449 "register '%s' at usb-%s-%s, %s, %pM\n", 1450 udev->dev.driver->name, 1451 xdev->bus->bus_name, xdev->devpath, 1452 dev->driver_info->description, 1453 net->dev_addr); 1454 1455 // ok, it's ready to go. 1456 usb_set_intfdata (udev, dev); 1457 1458 netif_device_attach (net); 1459 1460 if (dev->driver_info->flags & FLAG_LINK_INTR) 1461 netif_carrier_off(net); 1462 1463 return 0; 1464 | 1448 netif_info(dev, probe, dev->net, 1449 "register '%s' at usb-%s-%s, %s, %pM\n", 1450 udev->dev.driver->name, 1451 xdev->bus->bus_name, xdev->devpath, 1452 dev->driver_info->description, 1453 net->dev_addr); 1454 1455 // ok, it's ready to go. 1456 usb_set_intfdata (udev, dev); 1457 1458 netif_device_attach (net); 1459 1460 if (dev->driver_info->flags & FLAG_LINK_INTR) 1461 netif_carrier_off(net); 1462 1463 return 0; 1464 |
1465out4: 1466 usb_free_urb(dev->interrupt); |
|
1465out3: 1466 if (info->unbind) 1467 info->unbind (dev, udev); 1468out1: 1469 free_netdev(net); 1470out: 1471 usb_put_dev(xdev); 1472 return status; --- 105 unchanged lines hidden --- | 1467out3: 1468 if (info->unbind) 1469 info->unbind (dev, udev); 1470out1: 1471 free_netdev(net); 1472out: 1473 usb_put_dev(xdev); 1474 return status; --- 105 unchanged lines hidden --- |