diff options
Diffstat (limited to 'drivers/usb/core')
-rw-r--r-- | drivers/usb/core/driver.c | 4 | ||||
-rw-r--r-- | drivers/usb/core/usb.h | 2 |
2 files changed, 2 insertions, 4 deletions
diff --git a/drivers/usb/core/driver.c b/drivers/usb/core/driver.c index 2619986e5300..38c3dd2a44e0 100644 --- a/drivers/usb/core/driver.c +++ b/drivers/usb/core/driver.c | |||
@@ -879,8 +879,6 @@ static int usb_suspend_interface(struct usb_interface *intf, pm_message_t msg) | |||
879 | 879 | ||
880 | done: | 880 | done: |
881 | // dev_dbg(&intf->dev, "%s: status %d\n", __FUNCTION__, status); | 881 | // dev_dbg(&intf->dev, "%s: status %d\n", __FUNCTION__, status); |
882 | if (status == 0) | ||
883 | intf->dev.power.power_state.event = msg.event; | ||
884 | return status; | 882 | return status; |
885 | } | 883 | } |
886 | 884 | ||
@@ -920,8 +918,6 @@ static int usb_resume_interface(struct usb_interface *intf) | |||
920 | 918 | ||
921 | done: | 919 | done: |
922 | // dev_dbg(&intf->dev, "%s: status %d\n", __FUNCTION__, status); | 920 | // dev_dbg(&intf->dev, "%s: status %d\n", __FUNCTION__, status); |
923 | if (status == 0) | ||
924 | intf->dev.power.power_state.event = PM_EVENT_ON; | ||
925 | return status; | 921 | return status; |
926 | } | 922 | } |
927 | 923 | ||
diff --git a/drivers/usb/core/usb.h b/drivers/usb/core/usb.h index bf2eb0dae2ec..6f361df374fc 100644 --- a/drivers/usb/core/usb.h +++ b/drivers/usb/core/usb.h | |||
@@ -100,11 +100,13 @@ static inline int is_usb_device_driver(struct device_driver *drv) | |||
100 | static inline void mark_active(struct usb_interface *f) | 100 | static inline void mark_active(struct usb_interface *f) |
101 | { | 101 | { |
102 | f->is_active = 1; | 102 | f->is_active = 1; |
103 | f->dev.power.power_state.event = PM_EVENT_ON; | ||
103 | } | 104 | } |
104 | 105 | ||
105 | static inline void mark_quiesced(struct usb_interface *f) | 106 | static inline void mark_quiesced(struct usb_interface *f) |
106 | { | 107 | { |
107 | f->is_active = 0; | 108 | f->is_active = 0; |
109 | f->dev.power.power_state.event = PM_EVENT_SUSPEND; | ||
108 | } | 110 | } |
109 | 111 | ||
110 | static inline int is_active(const struct usb_interface *f) | 112 | static inline int is_active(const struct usb_interface *f) |