Commit 1a7ee899 authored by Matt Wagantall's avatar Matt Wagantall
Browse files

msm: footswitch: Move to new clock APIs



What was once done by just clk_enable() is being split into two
functions: clk_prepare() and clk_enable(), where the prepare
function may sleep but the enable function will not. The same
is true for the clk_disable() function.

Replace use of clk_enable() and clk_disable() with calls to
clk_prepare_enable() and clk_disable_unprepare(), respectively.
These macros are combinations of the APIs described above and
are safe to use in the footswitch driver since they are not
called from atomic context.

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