Commit 8f4bcc20 authored by David Brownell's avatar David Brownell Committed by Greg Kroah-Hartman

make suspend quieter

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: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
Acked-by: default avatarPavel Machek <pavel@ucw.cz>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent cbd69dbb
......@@ -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),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment