ARM: tegra: Remove duplicate clock inits
Sai Charan Gurrappadi [Thu, 5 Jul 2012 17:59:01 +0000 (10:59 -0700)]
Change-Id: I80c384d1aa4b1e45a4542acbde6b904f4a014aff
Signed-off-by: Sai Charan Gurrappadi <sgurrappadi@nvidia.com>
Reviewed-on: http://git-master/r/113679
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Peter De Schrijver <pdeschrijver@nvidia.com>
Reviewed-by: Peter Boonstoppel <pboonstoppel@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
GVS: Gerrit_Virtual_Submit

arch/arm/mach-tegra/cpuquiet.c

index f0163e1..26adce2 100644 (file)
@@ -388,13 +388,6 @@ int tegra_auto_hotplug_init(struct mutex *cpu_lock)
        INIT_DELAYED_WORK(&cpuquiet_work, tegra_cpuquiet_work_func);
        INIT_WORK(&minmax_work, min_max_constraints_workfunc);
 
-       cpu_clk = clk_get_sys(NULL, "cpu");
-       cpu_g_clk = clk_get_sys(NULL, "cpu_g");
-       cpu_lp_clk = clk_get_sys(NULL, "cpu_lp");
-
-       if (IS_ERR(cpu_clk) || IS_ERR(cpu_g_clk) || IS_ERR(cpu_lp_clk))
-               return -ENOENT;
-
        idle_top_freq = clk_get_max_rate(cpu_lp_clk) / 1000;
        idle_bottom_freq = clk_get_min_rate(cpu_g_clk) / 1000;