Skip to content

Commit 9fcc267

Browse files
geertugregkh
authored andcommitted
clk: renesas: cpg-mssr: Stop using printk format %pCr
commit ef4b0be upstream. Printk format "%pCr" will be removed soon, as clk_get_rate() must not be called in atomic context. Replace it by open-coding the operation. This is safe here, as the code runs in task context. Link: http://lkml.kernel.org/r/[email protected] To: Jia-Ju Bai <[email protected]> To: Jonathan Corbet <[email protected]> To: Michael Turquette <[email protected]> To: Stephen Boyd <[email protected]> To: Zhang Rui <[email protected]> To: Eduardo Valentin <[email protected]> To: Eric Anholt <[email protected]> To: Stefan Wahren <[email protected]> To: Greg Kroah-Hartman <[email protected]> Cc: Sergey Senozhatsky <[email protected]> Cc: Petr Mladek <[email protected]> Cc: Linus Torvalds <[email protected]> Cc: Steven Rostedt <[email protected]> Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: Geert Uytterhoeven <[email protected]> Cc: [email protected] # 4.5+ Signed-off-by: Geert Uytterhoeven <[email protected]> Acked-by: Stephen Boyd <[email protected]> Signed-off-by: Petr Mladek <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 0cf9382 commit 9fcc267

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

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

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -248,8 +248,9 @@ struct clk *cpg_mssr_clk_src_twocell_get(struct of_phandle_args *clkspec,
248248
dev_err(dev, "Cannot get %s clock %u: %ld", type, clkidx,
249249
PTR_ERR(clk));
250250
else
251-
dev_dbg(dev, "clock (%u, %u) is %pC at %pCr Hz\n",
252-
clkspec->args[0], clkspec->args[1], clk, clk);
251+
dev_dbg(dev, "clock (%u, %u) is %pC at %lu Hz\n",
252+
clkspec->args[0], clkspec->args[1], clk,
253+
clk_get_rate(clk));
253254
return clk;
254255
}
255256

@@ -314,7 +315,7 @@ static void __init cpg_mssr_register_core_clk(const struct cpg_core_clk *core,
314315
if (IS_ERR_OR_NULL(clk))
315316
goto fail;
316317

317-
dev_dbg(dev, "Core clock %pC at %pCr Hz\n", clk, clk);
318+
dev_dbg(dev, "Core clock %pC at %lu Hz\n", clk, clk_get_rate(clk));
318319
priv->clks[id] = clk;
319320
return;
320321

@@ -380,7 +381,7 @@ static void __init cpg_mssr_register_mod_clk(const struct mssr_mod_clk *mod,
380381
if (IS_ERR(clk))
381382
goto fail;
382383

383-
dev_dbg(dev, "Module clock %pC at %pCr Hz\n", clk, clk);
384+
dev_dbg(dev, "Module clock %pC at %lu Hz\n", clk, clk_get_rate(clk));
384385
priv->clks[id] = clk;
385386
return;
386387

0 commit comments

Comments
 (0)