ARM: tegra: mipi-cal: t148 specific clk72mhz
Charlie Huang [Wed, 28 Aug 2013 19:37:43 +0000 (12:37 -0700)]
clk72mhz is t148 arch specific clock name, no need to request it for
t114, otherwise a kernel warn will be reported.

bug 1353722

Change-Id: Idcbf110dcbdb0f5dce61336bd4fa8ef659683b71
Signed-off-by: Charlie Huang <chahuang@nvidia.com>
Reviewed-on: http://git-master/r/268733
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Pankaj Dabade <pdabade@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

arch/arm/mach-tegra/mipi-cal.c

index bba978a..8718b92 100644 (file)
@@ -103,13 +103,13 @@ static int __init mipi_cal_dev_init(void)
                pr_warn("%s: cannot get mipi-cal clk.\n", __func__);
                pm.clk = NULL;
        }
-
+#ifdef CONFIG_ARCH_TEGRA_14x_SOC
        pm.clk72mhz = clk_get_sys("clk72mhz", NULL);
        if (IS_ERR_OR_NULL(pm.clk72mhz)) {
                pr_warn("%s: cannot get mipi-cal clk.\n", __func__);
                pm.clk72mhz = NULL;
        }
-
+#endif
        return misc_register(&mipi_cal_dev);
 }