Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 0798360b authored by Matt Wagantall's avatar Matt Wagantall Committed by Stephen Boyd
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 cf8cbeeb
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment