diff options
author | Leonard Crestez <leonard.crestez@nxp.com> | 2019-07-02 16:27:10 +0300 |
---|---|---|
committer | Stephen Boyd <sboyd@kernel.org> | 2019-08-08 18:02:21 +0300 |
commit | 9f7767226083d51c0674f1b71ac52daea6778b84 (patch) | |
tree | c5c54f2ee02cb5e6b171dfc5d2ccab27de1f9ca7 /drivers/clk/clk.c | |
parent | 1bd37a46770017e89943769112c5f09e5a7b24c1 (diff) | |
download | linux-9f7767226083d51c0674f1b71ac52daea6778b84.tar.xz |
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: Leonard Crestez <leonard.crestez@nxp.com>
Link: https://lkml.kernel.org/r/29453ee8e820457d87a8faf9d496390e59c6826f.1562073871.git.leonard.crestez@nxp.com
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Diffstat (limited to 'drivers/clk/clk.c')
-rw-r--r-- | drivers/clk/clk.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/clk/clk.c b/drivers/clk/clk.c index a7cee0fac071..991fb3a62bda 100644 --- a/drivers/clk/clk.c +++ b/drivers/clk/clk.c @@ -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; |