Commit 7a8c63c2 authored by Patrick Mochel's avatar Patrick Mochel

[power] Simplify error handling in pm_suspend_prepare().

parent 7b152f4f
...@@ -71,17 +71,14 @@ static int suspend_prepare(u32 state) ...@@ -71,17 +71,14 @@ static int suspend_prepare(u32 state)
if ((error = device_suspend(state))) if ((error = device_suspend(state)))
goto Finish; goto Finish;
return 0; return 0;
Done:
pm_restore_console();
return error;
Finish: Finish:
if (pm_ops->finish) if (pm_ops->finish)
pm_ops->finish(state); pm_ops->finish(state);
Thaw: Thaw:
thaw_processes(); thaw_processes();
goto Done; pm_restore_console();
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