clk: sunxi-ng: Make fractional helper less chatty
authorJernej Škrabec <jernej.skrabec@siol.net>
Sun, 30 Jul 2017 16:41:49 +0000 (18:41 +0200)
committerChen-Yu Tsai <wens@csie.org>
Tue, 1 Aug 2017 02:18:23 +0000 (10:18 +0800)
ccu_frac_helper_read_rate() prints some info which is not really
helpful except during debugging.

Replace printk() with pr_debug().

Fixes: 89a3dfb78707 ("clk: sunxi-ng: Add fractional lib")
Signed-off-by: Jernej Skrabec <jernej.skrabec@siol.net>
Signed-off-by: Chen-Yu Tsai <wens@csie.org>
drivers/clk/sunxi-ng/ccu_frac.c

index 8b5eb7756bf7dca2cf72543c40ac331c91d323fa..ff9e72dc533729718ea15a2231bc1dba48ad1839 100644 (file)
@@ -67,18 +67,18 @@ unsigned long ccu_frac_helper_read_rate(struct ccu_common *common,
 {
        u32 reg;
 
-       printk("%s: Read fractional\n", clk_hw_get_name(&common->hw));
+       pr_debug("%s: Read fractional\n", clk_hw_get_name(&common->hw));
 
        if (!(common->features & CCU_FEATURE_FRACTIONAL))
                return 0;
 
-       printk("%s: clock is fractional (rates %lu and %lu)\n",
-              clk_hw_get_name(&common->hw), cf->rates[0], cf->rates[1]);
+       pr_debug("%s: clock is fractional (rates %lu and %lu)\n",
+                clk_hw_get_name(&common->hw), cf->rates[0], cf->rates[1]);
 
        reg = readl(common->base + common->reg);
 
-       printk("%s: clock reg is 0x%x (select is 0x%x)\n",
-              clk_hw_get_name(&common->hw), reg, cf->select);
+       pr_debug("%s: clock reg is 0x%x (select is 0x%x)\n",
+                clk_hw_get_name(&common->hw), reg, cf->select);
 
        return (reg & cf->select) ? cf->rates[1] : cf->rates[0];
 }