Commit 9f776722 authored by Leonard Crestez's avatar Leonard Crestez Committed by Stephen Boyd

clk: Assert prepare_lock in clk_core_get_boundaries

This function iterates the clk consumer list on clk_core so it must be
called under prepare_lock. This is already done by all callers but add a
lockdep assert to check anyway.
Signed-off-by: default avatarLeonard Crestez <leonard.crestez@nxp.com>
Link: https://lkml.kernel.org/r/29453ee8e820457d87a8faf9d496390e59c6826f.1562073871.git.leonard.crestez@nxp.comSigned-off-by: default avatarStephen Boyd <sboyd@kernel.org>
parent 1bd37a46
......@@ -593,6 +593,8 @@ static void clk_core_get_boundaries(struct clk_core *core,
{
struct clk *clk_user;
lockdep_assert_held(&prepare_lock);
*min_rate = core->min_rate;
*max_rate = core->max_rate;
......
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