ARM: tegra11: clock: Only check netlist on FPGA
Jeff Smith [Fri, 3 Aug 2012 22:09:07 +0000 (15:09 -0700)]
Let this code path run through on simulation, and avoid
illegal netlist query on simulation.

Change-Id: I0500e5c599001a63a9ae0cdc575556adb72d2436
Signed-off-by: Jeff Smith <jsmith@nvidia.com>
Reviewed-on: http://git-master/r/161286
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

arch/arm/mach-tegra/tegra11_clocks.c

index 25490f2..0f0360b 100644 (file)
@@ -3291,7 +3291,7 @@ static void __init tegra11_dfll_cpu_late_init(struct clk *c)
        int ret;
        struct clk *cpu = tegra_get_clock_by_name("cpu");
 
-#ifndef CONFIG_TEGRA_SILICON_PLATFORM
+#ifdef CONFIG_TEGRA_FPGA_PLATFORM
        u32 netlist, patchid;
        tegra_get_netlist_revision(&netlist, &patchid);
        if (netlist < 12) {