diff options
Diffstat (limited to 'drivers/net/wimax/i2400m/usb.c')
| -rw-r--r-- | drivers/net/wimax/i2400m/usb.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/net/wimax/i2400m/usb.c b/drivers/net/wimax/i2400m/usb.c index 298f2b0b6311..2c1b8b687646 100644 --- a/drivers/net/wimax/i2400m/usb.c +++ b/drivers/net/wimax/i2400m/usb.c | |||
| @@ -67,6 +67,7 @@ | |||
| 67 | #include <linux/wimax/i2400m.h> | 67 | #include <linux/wimax/i2400m.h> |
| 68 | #include <linux/debugfs.h> | 68 | #include <linux/debugfs.h> |
| 69 | #include <linux/slab.h> | 69 | #include <linux/slab.h> |
| 70 | #include <linux/module.h> | ||
| 70 | 71 | ||
| 71 | 72 | ||
| 72 | #define D_SUBMODULE usb | 73 | #define D_SUBMODULE usb |
| @@ -599,7 +600,7 @@ void i2400mu_disconnect(struct usb_interface *iface) | |||
| 599 | * | 600 | * |
| 600 | * As well, the device might refuse going to sleep for whichever | 601 | * As well, the device might refuse going to sleep for whichever |
| 601 | * reason. In this case we just fail. For system suspend/hibernate, | 602 | * reason. In this case we just fail. For system suspend/hibernate, |
| 602 | * we *can't* fail. We check PM_EVENT_AUTO to see if the | 603 | * we *can't* fail. We check PMSG_IS_AUTO to see if the |
| 603 | * suspend call comes from the USB stack or from the system and act | 604 | * suspend call comes from the USB stack or from the system and act |
| 604 | * in consequence. | 605 | * in consequence. |
| 605 | * | 606 | * |
| @@ -615,7 +616,7 @@ int i2400mu_suspend(struct usb_interface *iface, pm_message_t pm_msg) | |||
| 615 | struct i2400m *i2400m = &i2400mu->i2400m; | 616 | struct i2400m *i2400m = &i2400mu->i2400m; |
| 616 | 617 | ||
| 617 | #ifdef CONFIG_PM | 618 | #ifdef CONFIG_PM |
| 618 | if (pm_msg.event & PM_EVENT_AUTO) | 619 | if (PMSG_IS_AUTO(pm_msg)) |
| 619 | is_autosuspend = 1; | 620 | is_autosuspend = 1; |
| 620 | #endif | 621 | #endif |
| 621 | 622 | ||
