aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2009-12-11 18:22:55 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2009-12-11 18:22:55 -0500
commit748e566b7e24541e05e3e70be311887a1262f2a1 (patch)
tree41cc3a9aa04918cc17efa575baf6dbf87f40ddba /drivers/net
parent5f1141eb352ea79d849920039503e40dd623fffa (diff)
parentacf509ae28301d78b022c534c26b1e4765c18f2b (diff)
Merge git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb-2.6
* git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb-2.6: (122 commits) USB: mos7840: add device IDs for B&B electronics devices USB: ftdi_sio: add USB device ID's for B&B Electronics line USB: musb: musb_host: fix sparse warning USB: musb: musb_gadget: fix sparse warning USB: musb: omap2430: fix sparse warning USB: core: message: fix sparse warning USB: core: hub: fix sparse warning USB: core: fix sparse warning for static function USB: Added USB_ETH_RNDIS to use instead of CONFIG_USB_ETH_RNDIS USB: Check bandwidth when switching alt settings. USB: Refactor code to find alternate interface settings. USB: xhci: Fix command completion after a drop endpoint. USB: xhci: Make reverting an alt setting "unfailable". USB: usbtmc: Use usb_clear_halt() instead of custom code. USB: xhci: Add correct email and files to MAINTAINERS entry. USB: ehci-omap.c: introduce missing kfree USB: xhci-mem.c: introduce missing kfree USB: add remove_id sysfs attr for usb drivers USB: g_multi kconfig: fix depends and help text USB: option: add pid for ZTE ...
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/wimax/i2400m/usb.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/drivers/net/wimax/i2400m/usb.c b/drivers/net/wimax/i2400m/usb.c
index 47e84ef355c5..3b48681f8a0d 100644
--- a/drivers/net/wimax/i2400m/usb.c
+++ b/drivers/net/wimax/i2400m/usb.c
@@ -579,7 +579,7 @@ void i2400mu_disconnect(struct usb_interface *iface)
579 * 579 *
580 * As well, the device might refuse going to sleep for whichever 580 * As well, the device might refuse going to sleep for whichever
581 * reason. In this case we just fail. For system suspend/hibernate, 581 * reason. In this case we just fail. For system suspend/hibernate,
582 * we *can't* fail. We look at usb_dev->auto_pm to see if the 582 * we *can't* fail. We check PM_EVENT_AUTO to see if the
583 * suspend call comes from the USB stack or from the system and act 583 * suspend call comes from the USB stack or from the system and act
584 * in consequence. 584 * in consequence.
585 * 585 *
@@ -591,14 +591,11 @@ int i2400mu_suspend(struct usb_interface *iface, pm_message_t pm_msg)
591 int result = 0; 591 int result = 0;
592 struct device *dev = &iface->dev; 592 struct device *dev = &iface->dev;
593 struct i2400mu *i2400mu = usb_get_intfdata(iface); 593 struct i2400mu *i2400mu = usb_get_intfdata(iface);
594#ifdef CONFIG_PM
595 struct usb_device *usb_dev = i2400mu->usb_dev;
596#endif
597 unsigned is_autosuspend = 0; 594 unsigned is_autosuspend = 0;
598 struct i2400m *i2400m = &i2400mu->i2400m; 595 struct i2400m *i2400m = &i2400mu->i2400m;
599 596
600#ifdef CONFIG_PM 597#ifdef CONFIG_PM
601 if (usb_dev->auto_pm > 0) 598 if (pm_msg.event & PM_EVENT_AUTO)
602 is_autosuspend = 1; 599 is_autosuspend = 1;
603#endif 600#endif
604 601