From 6cc04a4420391c3f034afe8ea6e28d75912a70a3 Mon Sep 17 00:00:00 2001 From: Stephen Warren Date: Mon, 19 Dec 2011 12:24:05 -0700 Subject: arm/tegra: Compile tegra_dt_init_irq only when CONFIG_OF This fixes a build break attempting to build a Tegra20-only kernel without device tree enabled. Signed-off-by: Stephen Warren Signed-off-by: Olof Johansson --- arch/arm/mach-tegra/common.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'arch/arm/mach-tegra/common.c') diff --git a/arch/arm/mach-tegra/common.c b/arch/arm/mach-tegra/common.c index 8911e620c09..72b666bd304 100644 --- a/arch/arm/mach-tegra/common.c +++ b/arch/arm/mach-tegra/common.c @@ -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) { -- cgit v1.2.3