arm/tegra: Compile tegra_dt_init_irq only when CONFIG_OF
authorStephen Warren <swarren@nvidia.com>
Mon, 19 Dec 2011 19:24:05 +0000 (12:24 -0700)
committerOlof Johansson <olof@lixom.net>
Tue, 20 Dec 2011 02:07:22 +0000 (18:07 -0800)
This fixes a build break attempting to build a Tegra20-only kernel
without device tree enabled.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Olof Johansson <olof@lixom.net>
arch/arm/mach-tegra/common.c

index 8911e620c092b06d2d2ec35f586705610b28bb7d..72b666bd3043422082de4b23f6266b9a0a8fe3b0 100644 (file)
@@ -35,6 +35,7 @@
 
 void (*arch_reset)(char mode, const char *cmd) = tegra_assert_system_reset;
 
+#ifdef CONFIG_OF
 static const struct of_device_id tegra_dt_irq_match[] __initconst = {
        { .compatible = "arm,cortex-a9-gic", .data = gic_of_init },
        { }
@@ -45,6 +46,7 @@ void __init tegra_dt_init_irq(void)
        tegra_init_irq();
        of_irq_init(tegra_dt_irq_match);
 }
+#endif
 
 void tegra_assert_system_reset(char mode, const char *cmd)
 {