aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/serial/ipw.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/ipw.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/ipw.c')
-rw-r--r--drivers/usb/serial/ipw.c18
1 files changed, 4 insertions, 14 deletions
diff --git a/drivers/usb/serial/ipw.c b/drivers/usb/serial/ipw.c
index 76a06406e26..5811d34b6c6 100644
--- a/drivers/usb/serial/ipw.c
+++ b/drivers/usb/serial/ipw.c
@@ -132,19 +132,11 @@ enum {
132 132
133#define IPW_WANTS_TO_SEND 0x30 133#define IPW_WANTS_TO_SEND 0x30
134 134
135static const struct usb_device_id usb_ipw_ids[] = { 135static const struct usb_device_id id_table[] = {
136 { USB_DEVICE(IPW_VID, IPW_PID) }, 136 { USB_DEVICE(IPW_VID, IPW_PID) },
137 { }, 137 { },
138}; 138};
139 139MODULE_DEVICE_TABLE(usb, id_table);
140MODULE_DEVICE_TABLE(usb, usb_ipw_ids);
141
142static struct usb_driver usb_ipw_driver = {
143 .name = "ipwtty",
144 .probe = usb_serial_probe,
145 .disconnect = usb_serial_disconnect,
146 .id_table = usb_ipw_ids,
147};
148 140
149static bool debug; 141static bool debug;
150 142
@@ -155,8 +147,6 @@ static int ipw_open(struct tty_struct *tty, struct usb_serial_port *port)
155 u8 *buf_flow_init; 147 u8 *buf_flow_init;
156 int result; 148 int result;
157 149
158 dbg("%s", __func__);
159
160 buf_flow_init = kmemdup(buf_flow_static, 16, GFP_KERNEL); 150 buf_flow_init = kmemdup(buf_flow_static, 16, GFP_KERNEL);
161 if (!buf_flow_init) 151 if (!buf_flow_init)
162 return -ENOMEM; 152 return -ENOMEM;
@@ -317,7 +307,7 @@ static struct usb_serial_driver ipw_device = {
317 .name = "ipw", 307 .name = "ipw",
318 }, 308 },
319 .description = "IPWireless converter", 309 .description = "IPWireless converter",
320 .id_table = usb_ipw_ids, 310 .id_table = id_table,
321 .num_ports = 1, 311 .num_ports = 1,
322 .disconnect = usb_wwan_disconnect, 312 .disconnect = usb_wwan_disconnect,
323 .open = ipw_open, 313 .open = ipw_open,
@@ -333,7 +323,7 @@ static struct usb_serial_driver * const serial_drivers[] = {
333 &ipw_device, NULL 323 &ipw_device, NULL
334}; 324};
335 325
336module_usb_serial_driver(usb_ipw_driver, serial_drivers); 326module_usb_serial_driver(serial_drivers, id_table);
337 327
338/* Module information */ 328/* Module information */
339MODULE_AUTHOR(DRIVER_AUTHOR); 329MODULE_AUTHOR(DRIVER_AUTHOR);