kalmia.c (7cdfa4a348b6b199a3189604f2085f1b214b6458) | kalmia.c (5c18e80be9ff362f6523b097d495bb2e2f939946) |
---|---|
1/* 2 * USB network interface driver for Samsung Kalmia based LTE USB modem like the 3 * Samsung GT-B3730 and GT-B3710. 4 * 5 * Copyright (C) 2011 Marius Bjoernstad Kotsbak <marius@kotsbak.com> 6 * 7 * Sponsored by Quicklink Video Distribution Services Ltd. 8 * --- 121 unchanged lines hidden (view full) --- 130 131 kfree(usb_buf); 132 return status; 133} 134 135static int 136kalmia_bind(struct usbnet *dev, struct usb_interface *intf) 137{ | 1/* 2 * USB network interface driver for Samsung Kalmia based LTE USB modem like the 3 * Samsung GT-B3730 and GT-B3710. 4 * 5 * Copyright (C) 2011 Marius Bjoernstad Kotsbak <marius@kotsbak.com> 6 * 7 * Sponsored by Quicklink Video Distribution Services Ltd. 8 * --- 121 unchanged lines hidden (view full) --- 130 131 kfree(usb_buf); 132 return status; 133} 134 135static int 136kalmia_bind(struct usbnet *dev, struct usb_interface *intf) 137{ |
138 u8 status; | 138 int status; |
139 u8 ethernet_addr[ETH_ALEN]; 140 141 /* Don't bind to AT command interface */ 142 if (intf->cur_altsetting->desc.bInterfaceClass != USB_CLASS_VENDOR_SPEC) 143 return -EINVAL; 144 145 dev->in = usb_rcvbulkpipe(dev->udev, 0x81 & USB_ENDPOINT_NUMBER_MASK); 146 dev->out = usb_sndbulkpipe(dev->udev, 0x02 & USB_ENDPOINT_NUMBER_MASK); --- 246 unchanged lines hidden --- | 139 u8 ethernet_addr[ETH_ALEN]; 140 141 /* Don't bind to AT command interface */ 142 if (intf->cur_altsetting->desc.bInterfaceClass != USB_CLASS_VENDOR_SPEC) 143 return -EINVAL; 144 145 dev->in = usb_rcvbulkpipe(dev->udev, 0x81 & USB_ENDPOINT_NUMBER_MASK); 146 dev->out = usb_sndbulkpipe(dev->udev, 0x02 & USB_ENDPOINT_NUMBER_MASK); --- 246 unchanged lines hidden --- |