|
@@ -543,6 +543,8 @@ EXPORT_SYMBOL_GPL(__clk_mux_determine_rate_closest);
|
|
|
|
|
|
static void clk_core_unprepare(struct clk_core *core)
|
|
|
{
|
|
|
+ lockdep_assert_held(&prepare_lock);
|
|
|
+
|
|
|
if (!core)
|
|
|
return;
|
|
|
|
|
@@ -589,6 +591,8 @@ static int clk_core_prepare(struct clk_core *core)
|
|
|
{
|
|
|
int ret = 0;
|
|
|
|
|
|
+ lockdep_assert_held(&prepare_lock);
|
|
|
+
|
|
|
if (!core)
|
|
|
return 0;
|
|
|
|
|
@@ -644,6 +648,8 @@ EXPORT_SYMBOL_GPL(clk_prepare);
|
|
|
|
|
|
static void clk_core_disable(struct clk_core *core)
|
|
|
{
|
|
|
+ lockdep_assert_held(&enable_lock);
|
|
|
+
|
|
|
if (!core)
|
|
|
return;
|
|
|
|
|
@@ -692,6 +698,8 @@ static int clk_core_enable(struct clk_core *core)
|
|
|
{
|
|
|
int ret = 0;
|
|
|
|
|
|
+ lockdep_assert_held(&enable_lock);
|
|
|
+
|
|
|
if (!core)
|
|
|
return 0;
|
|
|
|