ARM: tegra: dvfs: Fix uninitialized variable use
Alex Frid [Tue, 24 May 2011 21:50:13 +0000 (14:50 -0700)]
Completing fix started by 68e857d94f35286b9b359feef1e1dddc7e2aea8b.

Original-Change-Id: I61e9051da3d7aacd460d15ef8ff161b678c8fec1
Reviewed-on: http://git-master/r/32829
Tested-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Scott Williams <scwilliams@nvidia.com>
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
Reviewed-by: David Schalig <dschalig@nvidia.com>
Tested-by: David Schalig <dschalig@nvidia.com>

Rebase-Id: R352e5430825dd246eb7c8242b78f04699273f8e6

arch/arm/mach-tegra/dvfs.c

index 42bb83c..bbf43ae 100644 (file)
@@ -216,7 +216,7 @@ static int dvfs_rail_connect_to_regulator(struct dvfs_rail *rail)
                rail->reg = reg;
        }
 
-       v = regulator_get_voltage(reg);
+       v = regulator_get_voltage(rail->reg);
        if (v < 0) {
                pr_err("tegra_dvfs: failed initial get %s voltage\n",
                       rail->reg_id);