clk: renesas: rza1: Always use readl()/writel()
authorGeert Uytterhoeven <geert+renesas@glider.be>
Thu, 15 Mar 2018 09:44:19 +0000 (10:44 +0100)
committerGeert Uytterhoeven <geert+renesas@glider.be>
Wed, 21 Mar 2018 16:34:57 +0000 (17:34 +0100)
On arm32, there is no reason to use the (soon deprecated)
clk_readl()/clk_writel().  Hence use the generic readl()/writel()
instead.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Simon Horman <horms+renesas@verge.net.au>
drivers/clk/renesas/clk-rz.c

index 127c58135c8fec76b812b186b4f0d6d670ca828f..67dd712aa723c77c2ffab83c3913c78ac9abd439 100644 (file)
@@ -75,9 +75,9 @@ rz_cpg_register_clock(struct device_node *np, struct rz_cpg *cpg, const char *na
         * let them run at fixed current speed and implement the details later.
         */
        if (strcmp(name, "i") == 0)
-               val = (clk_readl(cpg->reg + CPG_FRQCR) >> 8) & 3;
+               val = (readl(cpg->reg + CPG_FRQCR) >> 8) & 3;
        else if (strcmp(name, "g") == 0)
-               val = clk_readl(cpg->reg + CPG_FRQCR2) & 3;
+               val = readl(cpg->reg + CPG_FRQCR2) & 3;
        else
                return ERR_PTR(-EINVAL);