Skip to content

Commit c001f9c

Browse files
committed
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 <[email protected]> Reviewed-by: Stephen Boyd <[email protected]> Link: https://lore.kernel.org/r/0cd9b5ffbe986bd7dc4ffb3f13492123432ee2e1.1716975021.git.geert+renesas@glider.be
1 parent 7c8730d commit c001f9c

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

drivers/clk/renesas/r8a77970-cpg-mssr.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
#include <dt-bindings/clock/r8a77970-cpg-mssr.h>
1919

2020
#include "renesas-cpg-mssr.h"
21+
#include "rcar-cpg-lib.h"
2122
#include "rcar-gen3-cpg.h"
2223

2324
#define CPG_SD0CKCR 0x0074
@@ -47,8 +48,6 @@ enum clk_ids {
4748
MOD_CLK_BASE
4849
};
4950

50-
static spinlock_t cpg_lock;
51-
5251
static const struct clk_div_table cpg_sd0h_div_table[] = {
5352
{ 0, 2 }, { 1, 3 }, { 2, 4 }, { 3, 6 },
5453
{ 4, 8 }, { 5, 12 }, { 6, 16 }, { 7, 18 },
@@ -213,8 +212,6 @@ static int __init r8a77970_cpg_mssr_init(struct device *dev)
213212
if (error)
214213
return error;
215214

216-
spin_lock_init(&cpg_lock);
217-
218215
cpg_pll_config = &cpg_pll_configs[CPG_PLL_CONFIG_INDEX(cpg_mode)];
219216

220217
return rcar_gen3_cpg_init(cpg_pll_config, CLK_EXTALR, cpg_mode);

0 commit comments

Comments
 (0)