Commit 302d9a3a authored by Matt Wagantall's avatar Matt Wagantall
Browse files

msm: acpuclock-krait: Clean up error paths in initialization code



BUG_ON() may be appropriate for critical clock initialization that will
prevent proper booting, but it is not appropriate for functions called
in hotplug notifiers while bringing additional CPUs on line. There, it
is better to just fail the hotplug rather than crashing on purpose.

Fix this by cleaning up the initialization error paths so that functions
called in the hotplug path return errors and cleanly rollback state.

Change-Id: I7b842956ea12ebb94c7c5b05de7a6dddfa298617
Signed-off-by: default avatarMatt Wagantall <mattw@codeaurora.org>
parent 754ee270
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment