summaryrefslogtreecommitdiff
path: root/arch/arm/mach-tegra/clock.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-tegra/clock.c')
-rw-r--r--arch/arm/mach-tegra/clock.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/clock.c b/arch/arm/mach-tegra/clock.c
index 799dd1f63a15..bf595c29dabf 100644
--- a/arch/arm/mach-tegra/clock.c
+++ b/arch/arm/mach-tegra/clock.c
@@ -628,6 +628,7 @@ unsigned long clk_get_rate_all_locked(struct clk *c)
rate = c->rate;
rate *= mul;
+ rate += div - 1; /* round up */
do_div(rate, div);
return rate;