Skip to content

Commit 0cf9382

Browse files
geertugregkh
authored andcommitted
thermal: bcm2835: Stop using printk format %pCr
commit bd2a07f upstream. Printk format "%pCr" will be removed soon, as clk_get_rate() must not be called in atomic context. Replace it by printing the variable that already holds the clock rate. Note that calling clk_get_rate() 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: [email protected] # 4.12+ Signed-off-by: Geert Uytterhoeven <[email protected]> Acked-by: Stefan Wahren <[email protected]> Signed-off-by: Petr Mladek <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent b2291a4 commit 0cf9382

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/thermal/broadcom/bcm2835_thermal.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,8 +213,8 @@ static int bcm2835_thermal_probe(struct platform_device *pdev)
213213
rate = clk_get_rate(data->clk);
214214
if ((rate < 1920000) || (rate > 5000000))
215215
dev_warn(&pdev->dev,
216-
"Clock %pCn running at %pCr Hz is outside of the recommended range: 1.92 to 5MHz\n",
217-
data->clk, data->clk);
216+
"Clock %pCn running at %lu Hz is outside of the recommended range: 1.92 to 5MHz\n",
217+
data->clk, rate);
218218

219219
/* register of thermal sensor and get info from DT */
220220
tz = thermal_zone_of_sensor_register(&pdev->dev, 0, data,

0 commit comments

Comments
 (0)