Commit 6eabceee authored by Patrick Mochel's avatar Patrick Mochel

[power] Make sure we restore interrupts if device_power_down() fails.

parent 7a8c63c2
...@@ -91,9 +91,9 @@ static int suspend_enter(u32 state) ...@@ -91,9 +91,9 @@ static int suspend_enter(u32 state)
if ((error = device_power_down(state))) if ((error = device_power_down(state)))
goto Done; goto Done;
error = pm_ops->enter(state); error = pm_ops->enter(state);
local_irq_restore(flags);
device_power_up(); device_power_up();
Done: Done:
local_irq_restore(flags);
return error; return error;
} }
......
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