From: Geert Uytterhoeven Date: Fri, 12 Aug 2016 12:37:54 +0000 (+0200) Subject: clk: divider: Fix clk_divider_round_rate() to use clk_readl() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=2cf9a57811bddb6fa6b0f8d7376da164d5534813;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git clk: divider: Fix clk_divider_round_rate() to use clk_readl() clk-divider uses clk_readl()/clk_writel() everywhere, except in clk_divider_round_rate(), where plain readl() is used. Change this to clk_readl(), as it makes a difference on powerpc. Fixes: e6d5e7d90be92cee ("clk-divider: Fix READ_ONLY when divider > 1") Signed-off-by: Geert Uytterhoeven Reviewed-by: James Hogan Signed-off-by: Stephen Boyd --- diff --git a/drivers/clk/clk-divider.c b/drivers/clk/clk-divider.c index a0f55bc1ad3d..96386ffc8483 100644 --- a/drivers/clk/clk-divider.c +++ b/drivers/clk/clk-divider.c @@ -352,7 +352,7 @@ static long clk_divider_round_rate(struct clk_hw *hw, unsigned long rate, /* if read only, just return current value */ if (divider->flags & CLK_DIVIDER_READ_ONLY) { - bestdiv = readl(divider->reg) >> divider->shift; + bestdiv = clk_readl(divider->reg) >> divider->shift; bestdiv &= div_mask(divider->width); bestdiv = _get_div(divider->table, bestdiv, divider->flags, divider->width);