aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/serial/aircable.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2012-05-22 18:50:46 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2012-05-22 18:50:46 -0400
commita481991467d38afb43c3921d5b5b59ccb61b04ba (patch)
treea4b0b9a14da6fd5ef7b9b512bb32dbfcfcf2cd71 /drivers/usb/serial/aircable.c
parentf6a26ae7699416d86bea8cb68ce413571e9cab3c (diff)
parentcda4db53e9c28061c100400e1a4d273ea61dfba9 (diff)
Merge tag 'usb-3.5-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb
Pull USB 3.5-rc1 changes from Greg Kroah-Hartman: "Here is the big USB 3.5-rc1 pull request for the 3.5-rc1 merge window. It's touches a lot of different parts of the kernel, all USB drivers, due to some API cleanups (getting rid of the ancient err() macro) and some changes that are needed for USB 3.0 power management updates. There are also lots of new drivers, pimarily gadget, but others as well. We deleted a staging driver, which was nice, and finally dropped the obsolete usbfs code, which will make Al happy to never have to touch that again. There were some build errors in the tree that linux-next found a few days ago, but those were fixed by the most recent changes (all were due to us not building with CONFIG_PM disabled.) Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>" * tag 'usb-3.5-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb: (477 commits) xhci: Fix DIV_ROUND_UP compile error. xhci: Fix compile with CONFIG_USB_SUSPEND=n USB: Fix core compile with CONFIG_USB_SUSPEND=n brcm80211: Fix compile error for .disable_hub_initiated_lpm. Revert "USB: EHCI: work around bug in the Philips ISP1562 controller" MAINTAINERS: Add myself as maintainer to the USB PHY Layer USB: EHCI: fix command register configuration lost problem USB: Remove races in devio.c USB: ehci-platform: remove update_device USB: Disable hub-initiated LPM for comms devices. xhci: Add Intel U1/U2 timeout policy. xhci: Add infrastructure for host-specific LPM policies. USB: Add macros for interrupt endpoint types. xhci: Reserve one command for USB3 LPM disable. xhci: Some Evaluate Context commands must succeed. USB: Disable USB 3.0 LPM in critical sections. USB: Add support to enable/disable USB3 link states. USB: Allow drivers to disable hub-initiated LPM. USB: Calculate USB 3.0 exit latencies for LPM. USB: Refactor code to set LPM support flag. ... Conflicts: arch/arm/mach-exynos/mach-nuri.c arch/arm/mach-exynos/mach-universal_c210.c drivers/net/wireless/ath/ath6kl/usb.c
Diffstat (limited to 'drivers/usb/serial/aircable.c')
-rw-r--r--drivers/usb/serial/aircable.c16
1 files changed, 5 insertions, 11 deletions
diff --git a/drivers/usb/serial/aircable.c b/drivers/usb/serial/aircable.c
index eec4fb9a35c1..d634e6635632 100644
--- a/drivers/usb/serial/aircable.c
+++ b/drivers/usb/serial/aircable.c
@@ -111,13 +111,14 @@ static int aircable_probe(struct usb_serial *serial,
111 for (i = 0; i < iface_desc->desc.bNumEndpoints; i++) { 111 for (i = 0; i < iface_desc->desc.bNumEndpoints; i++) {
112 endpoint = &iface_desc->endpoint[i].desc; 112 endpoint = &iface_desc->endpoint[i].desc;
113 if (usb_endpoint_is_bulk_out(endpoint)) { 113 if (usb_endpoint_is_bulk_out(endpoint)) {
114 dbg("found bulk out on endpoint %d", i); 114 dev_dbg(&serial->dev->dev,
115 "found bulk out on endpoint %d\n", i);
115 ++num_bulk_out; 116 ++num_bulk_out;
116 } 117 }
117 } 118 }
118 119
119 if (num_bulk_out == 0) { 120 if (num_bulk_out == 0) {
120 dbg("Invalid interface, discarding"); 121 dev_dbg(&serial->dev->dev, "Invalid interface, discarding\n");
121 return -ENODEV; 122 return -ENODEV;
122 } 123 }
123 124
@@ -133,7 +134,7 @@ static int aircable_process_packet(struct tty_struct *tty,
133 packet += HCI_HEADER_LENGTH; 134 packet += HCI_HEADER_LENGTH;
134 } 135 }
135 if (len <= 0) { 136 if (len <= 0) {
136 dbg("%s - malformed packet", __func__); 137 dev_dbg(&port->dev, "%s - malformed packet\n", __func__);
137 return 0; 138 return 0;
138 } 139 }
139 140
@@ -170,13 +171,6 @@ static void aircable_process_read_urb(struct urb *urb)
170 tty_kref_put(tty); 171 tty_kref_put(tty);
171} 172}
172 173
173static struct usb_driver aircable_driver = {
174 .name = "aircable",
175 .probe = usb_serial_probe,
176 .disconnect = usb_serial_disconnect,
177 .id_table = id_table,
178};
179
180static struct usb_serial_driver aircable_device = { 174static struct usb_serial_driver aircable_device = {
181 .driver = { 175 .driver = {
182 .owner = THIS_MODULE, 176 .owner = THIS_MODULE,
@@ -196,7 +190,7 @@ static struct usb_serial_driver * const serial_drivers[] = {
196 &aircable_device, NULL 190 &aircable_device, NULL
197}; 191};
198 192
199module_usb_serial_driver(aircable_driver, serial_drivers); 193module_usb_serial_driver(serial_drivers, id_table);
200 194
201MODULE_AUTHOR(DRIVER_AUTHOR); 195MODULE_AUTHOR(DRIVER_AUTHOR);
202MODULE_DESCRIPTION(DRIVER_DESC); 196MODULE_DESCRIPTION(DRIVER_DESC);