From: Pavel Machek Date: Thu, 21 Feb 2008 12:58:10 +0000 (+0100) Subject: power_state: remove it from driver core X-Git-Tag: v2.6.26-rc1~1126^2~21 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=35d313b8744dc64c31b9cfcdb083112937643b45;p=linux-2.6 power_state: remove it from driver core power_state is scheduled for removal, and it is used only for debug prints by driver core. Remove it. Signed-off-by: Pavel Machek Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/base/power/main.c b/drivers/base/power/main.c index d887d5cb5b..26de2c0fda 100644 --- a/drivers/base/power/main.c +++ b/drivers/base/power/main.c @@ -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);