diff options
author | Andy Green <andy@openmoko.com> | 2008-11-19 17:11:11 +0000 |
---|---|---|
committer | Andy Green <agreen@pads.home.warmcat.com> | 2008-11-19 17:11:11 +0000 |
commit | 312b15a3c89a66c20e08828512053e85bac0f499 (patch) | |
tree | bbfa60013cc96732f718c9b63d82d32aa18ca9b7 /drivers | |
parent | f39594d4998c1b4e7fb4de3a5d5936f5966499a8 (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.c | 8 |
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. |