Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

clk: renesas: r8a77970: Use common cpg_lock

R-Car Gen3 Socs use the common CPG/MSSR library functions in
rcar-cpg-lib.c, so the R-Car V3M sub-driver can use the common cpg_lock
instead of a driver-private lock.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Stephen Boyd <sboyd@kernel.org>
Link: https://lore.kernel.org/r/0cd9b5ffbe986bd7dc4ffb3f13492123432ee2e1.1716975021.git.geert+renesas@glider.be

+1 -4
+1 -4
drivers/clk/renesas/r8a77970-cpg-mssr.c
··· 18 18 #include <dt-bindings/clock/r8a77970-cpg-mssr.h> 19 19 20 20 #include "renesas-cpg-mssr.h" 21 + #include "rcar-cpg-lib.h" 21 22 #include "rcar-gen3-cpg.h" 22 23 23 24 #define CPG_SD0CKCR 0x0074 ··· 47 46 /* Module Clocks */ 48 47 MOD_CLK_BASE 49 48 }; 50 - 51 - static spinlock_t cpg_lock; 52 49 53 50 static const struct clk_div_table cpg_sd0h_div_table[] = { 54 51 { 0, 2 }, { 1, 3 }, { 2, 4 }, { 3, 6 }, ··· 211 212 error = rcar_rst_read_mode_pins(&cpg_mode); 212 213 if (error) 213 214 return error; 214 - 215 - spin_lock_init(&cpg_lock); 216 215 217 216 cpg_pll_config = &cpg_pll_configs[CPG_PLL_CONFIG_INDEX(cpg_mode)]; 218 217