Skip to content

Commit

Permalink
power_state: remove it from driver core
Browse files Browse the repository at this point in the history
power_state is scheduled for removal, and it is used only for debug
prints by driver core. Remove it.

Signed-off-by: Pavel Machek <pavel@suse.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Pavel Machek authored and Greg Kroah-Hartman committed Apr 20, 2008
1 parent 0c81eed commit 35d313b
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions drivers/base/power/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -377,11 +377,6 @@ static int suspend_device(struct device *dev, pm_message_t state)

down(&dev->sem);

if (dev->power.power_state.event) {
dev_dbg(dev, "PM: suspend %d-->%d\n",
dev->power.power_state.event, state.event);
}

if (dev->class && dev->class->suspend) {
suspend_device_dbg(dev, state, "class ");
error = dev->class->suspend(dev, state);
Expand Down

0 comments on commit 35d313b

Please sign in to comment.