diff options
| author | Michal Simek <[email protected]> | 2016-02-15 13:44:19 +0100 |
|---|---|---|
| committer | Michal Simek <[email protected]> | 2016-04-04 20:28:38 +0200 |
| commit | a359eaa59857079678a2fa5ff0e4c0894de4ee1d (patch) | |
| tree | c415ca3eeec7f53920342b898647608c372dc32b /arch/microblaze/cpu/interrupts.c | |
| parent | 9aa65cab73e4873f3e94c6df3d0efd99f3bc9926 (diff) | |
microblaze: Remove !OF_CONTROL code for timer and interrupt
OF_CONTROL is enabled by default that's why this is dead code.
Signed-off-by: Michal Simek <[email protected]>
Diffstat (limited to 'arch/microblaze/cpu/interrupts.c')
| -rw-r--r-- | arch/microblaze/cpu/interrupts.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/arch/microblaze/cpu/interrupts.c b/arch/microblaze/cpu/interrupts.c index e5d8894f544..010ca4a02c4 100644 --- a/arch/microblaze/cpu/interrupts.c +++ b/arch/microblaze/cpu/interrupts.c @@ -115,8 +115,6 @@ static void intc_init(void) int interrupt_init(void) { int i; - -#ifdef CONFIG_OF_CONTROL const void *blob = gd->fdt_blob; int node = 0; @@ -136,12 +134,7 @@ int interrupt_init(void) } else { return node; } -#else -#if defined(CONFIG_SYS_INTC_0_ADDR) && defined(CONFIG_SYS_INTC_0_NUM) - intc = (microblaze_intc_t *)CONFIG_SYS_INTC_0_ADDR; - irq_no = CONFIG_SYS_INTC_0_NUM; -#endif -#endif + if (irq_no) { vecs = calloc(1, sizeof(struct irq_action) * irq_no); if (vecs == NULL) { |
