Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 148677
b: refs/heads/master
c: 0072578
h: refs/heads/master
i:
  148675: 8d2f28b
v: v3
  • Loading branch information
Magnus Damm authored and Rafael J. Wysocki committed Jun 12, 2009
1 parent 1203665 commit e875766
Show file tree
Hide file tree
Showing 3 changed files with 1 addition 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: fe419535d82724314bbf1244a0e740e4ea1bd3ae
refs/heads/master: 00725787511e20dbd1fdc1fb233606120ae5c8cf
7 changes: 0 additions & 7 deletions trunk/drivers/base/power/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -399,9 +399,6 @@ static int device_resume(struct device *dev, pm_message_t state)
if (dev->type->pm) {
pm_dev_dbg(dev, state, "type ");
error = pm_op(dev, dev->type->pm, state);
} else if (dev->type->resume) {
pm_dev_dbg(dev, state, "legacy type ");
error = dev->type->resume(dev);
}
if (error)
goto End;
Expand Down Expand Up @@ -641,10 +638,6 @@ static int device_suspend(struct device *dev, pm_message_t state)
if (dev->type->pm) {
pm_dev_dbg(dev, state, "type ");
error = pm_op(dev, dev->type->pm, state);
} else if (dev->type->suspend) {
pm_dev_dbg(dev, state, "legacy type ");
error = dev->type->suspend(dev, state);
suspend_report_result(dev->type->suspend, error);
}
if (error)
goto End;
Expand Down
3 changes: 0 additions & 3 deletions trunk/include/linux/device.h
Original file line number Diff line number Diff line change
Expand Up @@ -289,9 +289,6 @@ struct device_type {
int (*uevent)(struct device *dev, struct kobj_uevent_env *env);
void (*release)(struct device *dev);

int (*suspend)(struct device *dev, pm_message_t state);
int (*resume)(struct device *dev);

struct dev_pm_ops *pm;
};

Expand Down

0 comments on commit e875766

Please sign in to comment.