make suspend quieter
authorDavid Brownell <david-b@pacbell.net>
Sun, 9 Jul 2006 23:28:28 +0000 (16:28 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 26 Sep 2006 04:08:37 +0000 (21:08 -0700)
Fix a goof in Linus' recent PM API updates:  don't emit any messages in the
typical NOP "already suspended it" late suspend case.

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Acked-by: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/base/power/suspend.c

index 10e8032aee1afe4801b031867bc47cf84cd5ae7c..0bda4a7f20422d82687efec95cb9be5cc668c0a3 100644 (file)
@@ -102,11 +102,6 @@ static int suspend_device_late(struct device *dev, pm_message_t state)
 {
        int error = 0;
 
-       if (dev->power.power_state.event) {
-               dev_dbg(dev, "PM: suspend_late %d-->%d\n",
-                       dev->power.power_state.event, state.event);
-       }
-
        if (dev->bus && dev->bus->suspend_late && !dev->power.power_state.event) {
                dev_dbg(dev, "LATE %s%s\n",
                        suspend_verb(state.event),