The spinlock name in clk-loongson1*.c is "_lock", that's not a very good name for something that may show up in lockdep debugging error messages. Give it a bit more descriptive name--ls1x_clk_lock. Acked-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Signed-off-by: Binbin Zhou <zhoubb@xxxxxxxxxx> Signed-off-by: HuaCai Chen <chenhc@xxxxxxxxxx> Cc: Michael Turquette <mturquette@xxxxxxxxxxxx> Cc: linux-clk@xxxxxxxxxxxxxxx --- drivers/clk/loongson1/clk-loongson1b.c | 14 +++++++------- drivers/clk/loongson1/clk-loongson1c.c | 8 ++++---- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/drivers/clk/loongson1/clk-loongson1b.c b/drivers/clk/loongson1/clk-loongson1b.c index f36a97e..8d5be12 100644 --- a/drivers/clk/loongson1/clk-loongson1b.c +++ b/drivers/clk/loongson1/clk-loongson1b.c @@ -18,7 +18,7 @@ #define OSC (33 * 1000000) #define DIV_APB 2 -static DEFINE_SPINLOCK(_lock); +static DEFINE_SPINLOCK(ls1x_clk_lock); static unsigned long ls1x_pll_recalc_rate(struct clk_hw *hw, unsigned long parent_rate) @@ -64,12 +64,12 @@ void __init ls1x_clk_init(void) CLK_GET_RATE_NOCACHE, LS1X_CLK_PLL_DIV, DIV_CPU_SHIFT, DIV_CPU_WIDTH, CLK_DIVIDER_ONE_BASED | - CLK_DIVIDER_ROUND_CLOSEST, &_lock); + CLK_DIVIDER_ROUND_CLOSEST, &ls1x_clk_lock); clk_hw_register_clkdev(hw, "cpu_clk_div", NULL); hw = clk_hw_register_mux(NULL, "cpu_clk", cpu_parents, ARRAY_SIZE(cpu_parents), CLK_SET_RATE_NO_REPARENT, LS1X_CLK_PLL_DIV, - BYPASS_CPU_SHIFT, BYPASS_CPU_WIDTH, 0, &_lock); + BYPASS_CPU_SHIFT, BYPASS_CPU_WIDTH, 0, &ls1x_clk_lock); clk_hw_register_clkdev(hw, "cpu_clk", NULL); /* _____ @@ -80,12 +80,12 @@ void __init ls1x_clk_init(void) */ hw = clk_hw_register_divider(NULL, "dc_clk_div", "pll_clk", 0, LS1X_CLK_PLL_DIV, DIV_DC_SHIFT, - DIV_DC_WIDTH, CLK_DIVIDER_ONE_BASED, &_lock); + DIV_DC_WIDTH, CLK_DIVIDER_ONE_BASED, &ls1x_clk_lock); clk_hw_register_clkdev(hw, "dc_clk_div", NULL); hw = clk_hw_register_mux(NULL, "dc_clk", dc_parents, ARRAY_SIZE(dc_parents), CLK_SET_RATE_NO_REPARENT, LS1X_CLK_PLL_DIV, - BYPASS_DC_SHIFT, BYPASS_DC_WIDTH, 0, &_lock); + BYPASS_DC_SHIFT, BYPASS_DC_WIDTH, 0, &ls1x_clk_lock); clk_hw_register_clkdev(hw, "dc_clk", NULL); /* _____ @@ -97,12 +97,12 @@ void __init ls1x_clk_init(void) hw = clk_hw_register_divider(NULL, "ahb_clk_div", "pll_clk", 0, LS1X_CLK_PLL_DIV, DIV_DDR_SHIFT, DIV_DDR_WIDTH, CLK_DIVIDER_ONE_BASED, - &_lock); + &ls1x_clk_lock); clk_hw_register_clkdev(hw, "ahb_clk_div", NULL); hw = clk_hw_register_mux(NULL, "ahb_clk", ahb_parents, ARRAY_SIZE(ahb_parents), CLK_SET_RATE_NO_REPARENT, LS1X_CLK_PLL_DIV, - BYPASS_DDR_SHIFT, BYPASS_DDR_WIDTH, 0, &_lock); + BYPASS_DDR_SHIFT, BYPASS_DDR_WIDTH, 0, &ls1x_clk_lock); clk_hw_register_clkdev(hw, "ahb_clk", NULL); clk_hw_register_clkdev(hw, "ls1x-dma", NULL); clk_hw_register_clkdev(hw, "stmmaceth", NULL); diff --git a/drivers/clk/loongson1/clk-loongson1c.c b/drivers/clk/loongson1/clk-loongson1c.c index 3466f73..7635848 100644 --- a/drivers/clk/loongson1/clk-loongson1c.c +++ b/drivers/clk/loongson1/clk-loongson1c.c @@ -16,7 +16,7 @@ #define OSC (24 * 1000000) #define DIV_APB 1 -static DEFINE_SPINLOCK(_lock); +static DEFINE_SPINLOCK(ls1x_clk_lock); static unsigned long ls1x_pll_recalc_rate(struct clk_hw *hw, unsigned long parent_rate) @@ -58,7 +58,7 @@ void __init ls1x_clk_init(void) CLK_GET_RATE_NOCACHE, LS1X_CLK_PLL_DIV, DIV_CPU_SHIFT, DIV_CPU_WIDTH, CLK_DIVIDER_ONE_BASED | - CLK_DIVIDER_ROUND_CLOSEST, &_lock); + CLK_DIVIDER_ROUND_CLOSEST, &ls1x_clk_lock); clk_hw_register_clkdev(hw, "cpu_clk_div", NULL); hw = clk_hw_register_fixed_factor(NULL, "cpu_clk", "cpu_clk_div", 0, 1, 1); @@ -66,7 +66,7 @@ void __init ls1x_clk_init(void) hw = clk_hw_register_divider(NULL, "dc_clk_div", "pll_clk", 0, LS1X_CLK_PLL_DIV, DIV_DC_SHIFT, - DIV_DC_WIDTH, CLK_DIVIDER_ONE_BASED, &_lock); + DIV_DC_WIDTH, CLK_DIVIDER_ONE_BASED, &ls1x_clk_lock); clk_hw_register_clkdev(hw, "dc_clk_div", NULL); hw = clk_hw_register_fixed_factor(NULL, "dc_clk", "dc_clk_div", 0, 1, 1); @@ -75,7 +75,7 @@ void __init ls1x_clk_init(void) hw = clk_hw_register_divider_table(NULL, "ahb_clk_div", "cpu_clk_div", 0, LS1X_CLK_PLL_FREQ, DIV_DDR_SHIFT, DIV_DDR_WIDTH, CLK_DIVIDER_ALLOW_ZERO, - ahb_div_table, &_lock); + ahb_div_table, &ls1x_clk_lock); clk_hw_register_clkdev(hw, "ahb_clk_div", NULL); hw = clk_hw_register_fixed_factor(NULL, "ahb_clk", "ahb_clk_div", 0, 1, 1); -- 2.9.4