diff options
author | Alan Stern <stern@rowland.harvard.edu> | 2007-05-04 19:49:57 +0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2007-07-13 03:29:46 +0400 |
commit | 784a6e1cc406b7ef48476a1f38b83fc551f5616f (patch) | |
tree | f4d6d3e6197ee776424b56dd7a3355ebb65e50aa /drivers/usb/core/driver.c | |
parent | f6ace2c99afefb7969ccccba2fb413ad29ab2e2e (diff) | |
download | linux-784a6e1cc406b7ef48476a1f38b83fc551f5616f.tar.xz |
USB: interface PM state
This patch (as880) strives to keep the PM core's idea of a USB
interface's power state in synch with usbcore's own idea. In the end
this doesn't really matter, but it's better to be consistent.
Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/core/driver.c')
-rw-r--r-- | drivers/usb/core/driver.c | 4 |
1 files changed, 0 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) done: // dev_dbg(&intf->dev, "%s: status %d\n", __FUNCTION__, status); - if (status == 0) - intf->dev.power.power_state.event = msg.event; return status; } @@ -920,8 +918,6 @@ static int usb_resume_interface(struct usb_interface *intf) done: // dev_dbg(&intf->dev, "%s: status %d\n", __FUNCTION__, status); - if (status == 0) - intf->dev.power.power_state.event = PM_EVENT_ON; return status; } |