Skip to content

Commit d63c16f

Browse files
geertupmladek
authored andcommitted
serial: sh-sci: Stop using printk format %pCr
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]> Signed-off-by: Petr Mladek <[email protected]>
1 parent bd2a07f commit d63c16f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/tty/serial/sh-sci.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2704,8 +2704,8 @@ static int sci_init_clocks(struct sci_port *sci_port, struct device *dev)
27042704
dev_dbg(dev, "failed to get %s (%ld)\n", clk_names[i],
27052705
PTR_ERR(clk));
27062706
else
2707-
dev_dbg(dev, "clk %s is %pC rate %pCr\n", clk_names[i],
2708-
clk, clk);
2707+
dev_dbg(dev, "clk %s is %pC rate %lu\n", clk_names[i],
2708+
clk, clk_get_rate(clk));
27092709
sci_port->clks[i] = IS_ERR(clk) ? NULL : clk;
27102710
}
27112711
return 0;

0 commit comments

Comments
 (0)