aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArnd Bergmann2013-03-01 07:12:01 -0600
committerArnd Bergmann2013-03-14 16:34:26 -0500
commitd6d1053a8bbf75e5eb6ef29ddcf87e66421763c4 (patch)
treeb5c244892c8ec7225b87b46db030c8ca5a62fa92
parent7b59496c11747cd715995874177dafd50c8a0115 (diff)
downloadomapdrm-d6d1053a8bbf75e5eb6ef29ddcf87e66421763c4.tar.gz
omapdrm-d6d1053a8bbf75e5eb6ef29ddcf87e66421763c4.tar.xz
omapdrm-d6d1053a8bbf75e5eb6ef29ddcf87e66421763c4.zip
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 <arnd@arndb.de> Cc: Tony Prisk <linux@prisktech.co.nz> Cc: Mike Turquette <mturquette@linaro.org>
-rw-r--r--drivers/clk/clk-vt8500.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/clk/clk-vt8500.c b/drivers/clk/clk-vt8500.c
index b5538bba7a1..09c63315e57 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,
157 divisor = parent_rate / rate; 157 divisor = parent_rate / rate;
158 158
159 /* If prate / rate would be decimal, incr the divisor */ 159 /* If prate / rate would be decimal, incr the divisor */
160 if (rate * divisor < *prate) 160 if (rate * divisor < parent_rate)
161 divisor++; 161 divisor++;
162 162
163 if (divisor == cdev->div_mask + 1) 163 if (divisor == cdev->div_mask + 1)