Commit 9c561be8 authored by Geert Uytterhoeven's avatar Geert Uytterhoeven

clk: renesas: r7s9210: Always use readl()

On arm32, there is no reason to use the (soon deprecated) clk_readl().
Hence use the generic readl() instead.
Signed-off-by: default avatarGeert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: default avatarSimon Horman <horms+renesas@verge.net.au>
parent 6a82559f
...@@ -11,6 +11,7 @@ ...@@ -11,6 +11,7 @@
#include <linux/clk.h> #include <linux/clk.h>
#include <linux/clk-provider.h> #include <linux/clk-provider.h>
#include <linux/io.h>
#include <dt-bindings/clock/r7s9210-cpg-mssr.h> #include <dt-bindings/clock/r7s9210-cpg-mssr.h>
#include "renesas-cpg-mssr.h" #include "renesas-cpg-mssr.h"
...@@ -119,7 +120,7 @@ static void __init r7s9210_update_clk_table(struct clk *extal_clk, ...@@ -119,7 +120,7 @@ static void __init r7s9210_update_clk_table(struct clk *extal_clk,
if (clk_get_rate(extal_clk) > 12000000) if (clk_get_rate(extal_clk) > 12000000)
cpg_mode = 1; cpg_mode = 1;
frqcr = clk_readl(base + CPG_FRQCR) & 0xFFF; frqcr = readl(base + CPG_FRQCR) & 0xFFF;
if (frqcr == 0x012) if (frqcr == 0x012)
index = 0; index = 0;
else if (frqcr == 0x112) else if (frqcr == 0x112)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment