diff options
author | Stephen Warren <swarren@nvidia.com> | 2011-12-19 14:24:05 -0500 |
---|---|---|
committer | Olof Johansson <olof@lixom.net> | 2011-12-19 21:07:22 -0500 |
commit | 6cc04a4420391c3f034afe8ea6e28d75912a70a3 (patch) | |
tree | bfaf6b5ddedaa03d31400b25b25cfaa3bd0c9107 /arch/arm/mach-tegra | |
parent | 24692c0fc6ee62b1b98dfab962694ca40a3e404a (diff) |
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 <swarren@nvidia.com>
Signed-off-by: Olof Johansson <olof@lixom.net>
Diffstat (limited to 'arch/arm/mach-tegra')
-rw-r--r-- | arch/arm/mach-tegra/common.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/common.c b/arch/arm/mach-tegra/common.c index 8911e620c092..72b666bd3043 100644 --- a/arch/arm/mach-tegra/common.c +++ b/arch/arm/mach-tegra/common.c | |||
@@ -35,6 +35,7 @@ | |||
35 | 35 | ||
36 | void (*arch_reset)(char mode, const char *cmd) = tegra_assert_system_reset; | 36 | void (*arch_reset)(char mode, const char *cmd) = tegra_assert_system_reset; |
37 | 37 | ||
38 | #ifdef CONFIG_OF | ||
38 | static const struct of_device_id tegra_dt_irq_match[] __initconst = { | 39 | static const struct of_device_id tegra_dt_irq_match[] __initconst = { |
39 | { .compatible = "arm,cortex-a9-gic", .data = gic_of_init }, | 40 | { .compatible = "arm,cortex-a9-gic", .data = gic_of_init }, |
40 | { } | 41 | { } |
@@ -45,6 +46,7 @@ void __init tegra_dt_init_irq(void) | |||
45 | tegra_init_irq(); | 46 | tegra_init_irq(); |
46 | of_irq_init(tegra_dt_irq_match); | 47 | of_irq_init(tegra_dt_irq_match); |
47 | } | 48 | } |
49 | #endif | ||
48 | 50 | ||
49 | void tegra_assert_system_reset(char mode, const char *cmd) | 51 | void tegra_assert_system_reset(char mode, const char *cmd) |
50 | { | 52 | { |