mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-27 17:18:59 +00:00
50 lines
1.7 KiB
Diff
50 lines
1.7 KiB
Diff
|
From 2399d181557d94ae9a2686926cd25768f132e4b4 Mon Sep 17 00:00:00 2001
|
||
|
From: Christian Marangi <ansuelsmth@gmail.com>
|
||
|
Date: Fri, 18 Mar 2022 16:12:14 +0100
|
||
|
Subject: [PATCH 7/9] clk: qcom: krait-cc: drop pr_info and use dev_info
|
||
|
|
||
|
Replace pr_info() with dev_info() to provide better diagnostics.
|
||
|
|
||
|
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
|
||
|
---
|
||
|
drivers/clk/qcom/krait-cc.c | 8 ++++----
|
||
|
1 file changed, 4 insertions(+), 4 deletions(-)
|
||
|
|
||
|
diff --git a/drivers/clk/qcom/krait-cc.c b/drivers/clk/qcom/krait-cc.c
|
||
|
index b71067a49ee7..e4fb3ff2b5b5 100644
|
||
|
--- a/drivers/clk/qcom/krait-cc.c
|
||
|
+++ b/drivers/clk/qcom/krait-cc.c
|
||
|
@@ -391,25 +391,25 @@ static int krait_cc_probe(struct platform_device *pdev)
|
||
|
cur_rate = clk_get_rate(l2_pri_mux_clk);
|
||
|
aux_rate = 384000000;
|
||
|
if (cur_rate == qsb_rate) {
|
||
|
- pr_info("L2 @ QSB rate. Forcing new rate.\n");
|
||
|
+ dev_info(dev, "L2 @ QSB rate. Forcing new rate.\n");
|
||
|
cur_rate = aux_rate;
|
||
|
}
|
||
|
clk_set_rate(l2_pri_mux_clk, aux_rate);
|
||
|
clk_set_rate(l2_pri_mux_clk, 2);
|
||
|
clk_set_rate(l2_pri_mux_clk, cur_rate);
|
||
|
- pr_info("L2 @ %lu KHz\n", clk_get_rate(l2_pri_mux_clk) / 1000);
|
||
|
+ dev_info(dev, "L2 @ %lu KHz\n", clk_get_rate(l2_pri_mux_clk) / 1000);
|
||
|
for_each_possible_cpu(cpu) {
|
||
|
clk = clks[cpu];
|
||
|
cur_rate = clk_get_rate(clk);
|
||
|
if (cur_rate == qsb_rate) {
|
||
|
- pr_info("CPU%d @ QSB rate. Forcing new rate.\n", cpu);
|
||
|
+ dev_info(dev, "CPU%d @ QSB rate. Forcing new rate.\n", cpu);
|
||
|
cur_rate = aux_rate;
|
||
|
}
|
||
|
|
||
|
clk_set_rate(clk, aux_rate);
|
||
|
clk_set_rate(clk, 2);
|
||
|
clk_set_rate(clk, cur_rate);
|
||
|
- pr_info("CPU%d @ %lu KHz\n", cpu, clk_get_rate(clk) / 1000);
|
||
|
+ dev_info(dev, "CPU%d @ %lu KHz\n", cpu, clk_get_rate(clk) / 1000);
|
||
|
}
|
||
|
|
||
|
of_clk_add_provider(dev->of_node, krait_of_get, clks);
|
||
|
--
|
||
|
2.37.2
|
||
|
|