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>
This commit is contained in:
parent
24692c0fc6
commit
6cc04a4420
1 changed files with 2 additions and 0 deletions
|
@ -35,6 +35,7 @@
|
||||||
|
|
||||||
void (*arch_reset)(char mode, const char *cmd) = tegra_assert_system_reset;
|
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 = {
|
static const struct of_device_id tegra_dt_irq_match[] __initconst = {
|
||||||
{ .compatible = "arm,cortex-a9-gic", .data = gic_of_init },
|
{ .compatible = "arm,cortex-a9-gic", .data = gic_of_init },
|
||||||
{ }
|
{ }
|
||||||
|
@ -45,6 +46,7 @@ void __init tegra_dt_init_irq(void)
|
||||||
tegra_init_irq();
|
tegra_init_irq();
|
||||||
of_irq_init(tegra_dt_irq_match);
|
of_irq_init(tegra_dt_irq_match);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
void tegra_assert_system_reset(char mode, const char *cmd)
|
void tegra_assert_system_reset(char mode, const char *cmd)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue