From: Arnd Bergmann Date: Fri, 1 Mar 2013 13:12:01 +0000 (+0100) Subject: clk: vt8500: Fix "fix device clock divisor calculations" X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d6d1053a8bbf75e5eb6ef29ddcf87e66421763c4;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git clk: vt8500: Fix "fix device clock divisor calculations" Patch 72480014b8 "Fix device clock divisor calculations" was apparently rebased incorrectly before it got upstream, causing a build error. Replacing the "prate" pointer with the local parent_rate is most likely the correct solution. Signed-off-by: Arnd Bergmann Cc: Tony Prisk Cc: Mike Turquette --- diff --git a/drivers/clk/clk-vt8500.c b/drivers/clk/clk-vt8500.c index b5538bba7a10..09c63315e579 100644 --- a/drivers/clk/clk-vt8500.c +++ b/drivers/clk/clk-vt8500.c @@ -157,7 +157,7 @@ static int vt8500_dclk_set_rate(struct clk_hw *hw, unsigned long rate, divisor = parent_rate / rate; /* If prate / rate would be decimal, incr the divisor */ - if (rate * divisor < *prate) + if (rate * divisor < parent_rate) divisor++; if (divisor == cdev->div_mask + 1)