ARM: tegra12: clock: Fix shared user request calculation
Kaz Fukuoka [Wed, 18 Sep 2013 21:22:44 +0000 (14:22 -0700)]
Fixed rate request calculation for shared users with non 1:1 bus to
user rate ratio. No harm was done so far since there are no such users
defined on Tegra12.

Ported from Tegra14 Change-Id: I8895b90a65df04607b610a95bcdf304de46a29ad

Change-Id: I58fdaa4e340950d27254fa0545302f035571d0e6
Signed-off-by: Kaz Fukuoka <kfukuoka@nvidia.com>
(cherry picked from commit 0ba6719cd905b14a630b47006518b4ba4191d45c)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

arch/arm/mach-tegra/tegra12_clocks.c

index 39fc3fc..93bca0a 100644 (file)
@@ -5634,7 +5634,7 @@ static unsigned long tegra12_clk_shared_bus_update(struct clk *bus,
                    (c->u.shared_bus_user.mode == SHARED_CEILING_BUT_ISO)) {
                        unsigned long request_rate = c->u.shared_bus_user.rate;
                        if (!(c->flags & DIV_BUS))
-                               rate *= c->div ? : 1;
+                               request_rate *= c->div ? : 1;
                        usage_flags |= c->u.shared_bus_user.usage_flag;
 
                        switch (c->u.shared_bus_user.mode) {