Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 59103
b: refs/heads/master
c: 515c535
h: refs/heads/master
i:
  59101: e335cf9
  59099: e18f2f3
  59095: 7957400
  59087: 9d404e1
  59071: 13ccb5a
v: v3
  • Loading branch information
Rafael J. Wysocki authored and Greg Kroah-Hartman committed Jul 11, 2007
1 parent 10f98f2 commit e33a4e4
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 11 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2a0134554e12f530c6eccb1dab3f0f8954f855c9
refs/heads/master: 515c53576299e32d6bdb6295cfa2fe1307516eb4
3 changes: 1 addition & 2 deletions trunk/drivers/base/power/resume.c
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,7 @@ void dpm_resume(void)
list_move_tail(entry, &dpm_active);

mutex_unlock(&dpm_list_mtx);
if (!dev->power.prev_state.event)
resume_device(dev);
resume_device(dev);
mutex_lock(&dpm_list_mtx);
put_device(dev);
}
Expand Down
2 changes: 0 additions & 2 deletions trunk/drivers/base/power/suspend.c
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,6 @@ int suspend_device(struct device * dev, pm_message_t state)
dev->parent->power.power_state.event);
}

dev->power.prev_state = dev->power.power_state;

if (dev->class && dev->class->suspend && !dev->power.power_state.event) {
suspend_device_dbg(dev, state, "class ");
error = dev->class->suspend(dev, state);
Expand Down
5 changes: 0 additions & 5 deletions trunk/drivers/usb/core/hub.c
Original file line number Diff line number Diff line change
Expand Up @@ -1109,11 +1109,6 @@ void usb_root_hub_lost_power(struct usb_device *rhdev)

dev_warn(&rhdev->dev, "root hub lost power or was reset\n");

/* Make sure no potential wakeup events get lost,
* by forcing the root hub to be resumed.
*/
rhdev->dev.power.prev_state.event = PM_EVENT_ON;

spin_lock_irqsave(&device_state_lock, flags);
hub = hdev_to_hub(rhdev);
for (port1 = 1; port1 <= rhdev->maxchild; ++port1) {
Expand Down
1 change: 0 additions & 1 deletion trunk/include/linux/pm.h
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,6 @@ struct dev_pm_info {
unsigned can_wakeup:1;
#ifdef CONFIG_PM
unsigned should_wakeup:1;
pm_message_t prev_state;
struct list_head entry;
#endif
};
Expand Down

0 comments on commit e33a4e4

Please sign in to comment.