]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/commitdiff
ARM: tegra: mipi-cal: t148 specific clk72mhz
authorCharlie Huang <chahuang@nvidia.com>
Wed, 28 Aug 2013 19:37:43 +0000 (12:37 -0700)
committerDan Willemsen <dwillemsen@nvidia.com>
Sat, 14 Sep 2013 20:44:55 +0000 (13:44 -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 bba978ad9eb52e6feee9b83acaabf8a41d13105d..8718b920a2412945269a23ffdab7d0742835c00d 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);
 }