aboutsummaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorAndy Green <andy@openmoko.com>2008-11-19 17:11:11 +0000
committerAndy Green <agreen@pads.home.warmcat.com>2008-11-19 17:11:11 +0000
commit312b15a3c89a66c20e08828512053e85bac0f499 (patch)
treebbfa60013cc96732f718c9b63d82d32aa18ca9b7 /drivers
parentf39594d4998c1b4e7fb4de3a5d5936f5966499a8 (diff)
debug-move-led-around.patch
Light an LED in the dark crashing hell of dead resume... the problems come from Glamo it turns out Signed-off-by: Andy Green <andy@openmoko.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/base/power/main.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/base/power/main.c b/drivers/base/power/main.c
index 954d21dcfc4..067594c0381 100644
--- a/drivers/base/power/main.c
+++ b/drivers/base/power/main.c
@@ -529,6 +529,14 @@ static pm_message_t resume_event(pm_message_t sleep_state)
return PMSG_ON;
}
+static void
+suspend_device_dbg(struct device *dev, pm_message_t state, char *info)
+{
+ dev_err(dev, "%s%s%s\n", info, suspend_verb(state.event),
+ ((state.event == PM_EVENT_SUSPEND) && device_may_wakeup(dev)) ?
+ ", may wakeup" : "");
+}
+
/**
* suspend_device_noirq - Shut down one device (late suspend).
* @dev: Device.