]> git.baikalelectronics.ru Git - kernel.git/commit
clk: Assert prepare_lock in clk_core_get_boundaries
authorLeonard Crestez <leonard.crestez@nxp.com>
Tue, 2 Jul 2019 13:27:10 +0000 (16:27 +0300)
committerStephen Boyd <sboyd@kernel.org>
Thu, 8 Aug 2019 15:02:21 +0000 (08:02 -0700)
commitb09ff604d1bc343cd5cbfc52499101c8accf5bf3
treec5c54f2ee02cb5e6b171dfc5d2ccab27de1f9ca7
parent02777378a934cf361b73aa35296897511c46905a
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>
drivers/clk/clk.c