diff options
author | Alan Stern <stern@rowland.harvard.edu> | 2007-06-21 16:25:17 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2007-07-12 16:34:39 -0700 |
commit | e7e6da9eb189dfa221e3bf9c21d58f02adc8983c (patch) | |
tree | d901feb725d196537392bdef1cc8693e936c8847 /drivers/usb/core/driver.c | |
parent | 317c67b8f7092db325a3df825646eb26982908c6 (diff) | |
download | op-kernel-dev-e7e6da9eb189dfa221e3bf9c21d58f02adc8983c.zip op-kernel-dev-e7e6da9eb189dfa221e3bf9c21d58f02adc8983c.tar.gz |
USB: Remove usages of dev->power.power_state
This patch (as922) removes all but one of the remaining vestiges of
dev->power.power_state from usbcore. The only usage left must remain
until the deprecated "power/state" sysfs attribute is gone.
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 | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/usb/core/driver.c b/drivers/usb/core/driver.c index 3cd9af2..a3aed8d8 100644 --- a/drivers/usb/core/driver.c +++ b/drivers/usb/core/driver.c @@ -1196,11 +1196,7 @@ static int usb_resume_both(struct usb_device *udev) /* We can't progagate beyond the USB subsystem, * so if a root hub's controller is suspended * then we're stuck. */ - if (udev->dev.parent->power.power_state.event != - PM_EVENT_ON) - status = -EHOSTUNREACH; - else - status = usb_resume_device(udev); + status = usb_resume_device(udev); } } else { |