power_state: remove it from driver core
authorPavel Machek <pavel@ucw.cz>
Thu, 21 Feb 2008 12:58:10 +0000 (13:58 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sun, 20 Apr 2008 02:10:23 +0000 (19:10 -0700)
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>
drivers/base/power/main.c

index d887d5cb5bef74496f323a84d94b691ab24a2550..26de2c0fda8032b9c03d679895f0929d3789f8bb 100644 (file)
@@ -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);