diff options
author | Rafał Miłecki <zajec5@gmail.com> | 2014-10-28 09:40:38 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2014-11-24 01:45:00 -0500 |
commit | e5810fa0c1bed16fdfb408862a2e17e962ec5cf6 (patch) | |
tree | 424fd47ac92e2696afe287a29dfc14f4fc5f399d /arch/mips/bcm47xx/irq.c | |
parent | a59da8fb3b2a1f2df5f871464e43cd5b6ca6ceb1 (diff) |
MIPS: BCM47XX: Initialize bcma bus later (with mm available)
Initializaion with memory allocator available will be much simpler, this
will allow cleanup in the bcma code.
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Acked-by: Hauke Mehrtens <hauke@hauke-m.de>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/8234/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/bcm47xx/irq.c')
-rw-r--r-- | arch/mips/bcm47xx/irq.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/mips/bcm47xx/irq.c b/arch/mips/bcm47xx/irq.c index e0585b76ec19..21b4497f09be 100644 --- a/arch/mips/bcm47xx/irq.c +++ b/arch/mips/bcm47xx/irq.c | |||
@@ -22,6 +22,8 @@ | |||
22 | * 675 Mass Ave, Cambridge, MA 02139, USA. | 22 | * 675 Mass Ave, Cambridge, MA 02139, USA. |
23 | */ | 23 | */ |
24 | 24 | ||
25 | #include "bcm47xx_private.h" | ||
26 | |||
25 | #include <linux/types.h> | 27 | #include <linux/types.h> |
26 | #include <linux/interrupt.h> | 28 | #include <linux/interrupt.h> |
27 | #include <linux/irq.h> | 29 | #include <linux/irq.h> |
@@ -65,6 +67,12 @@ DEFINE_HWx_IRQDISPATCH(7) | |||
65 | 67 | ||
66 | void __init arch_init_irq(void) | 68 | void __init arch_init_irq(void) |
67 | { | 69 | { |
70 | /* | ||
71 | * This is the first arch callback after mm_init (we can use kmalloc), | ||
72 | * so let's finish bus initialization now. | ||
73 | */ | ||
74 | bcm47xx_bus_setup(); | ||
75 | |||
68 | #ifdef CONFIG_BCM47XX_BCMA | 76 | #ifdef CONFIG_BCM47XX_BCMA |
69 | if (bcm47xx_bus_type == BCM47XX_BUS_TYPE_BCMA) { | 77 | if (bcm47xx_bus_type == BCM47XX_BUS_TYPE_BCMA) { |
70 | bcma_write32(bcm47xx_bus.bcma.bus.drv_mips.core, | 78 | bcma_write32(bcm47xx_bus.bcma.bus.drv_mips.core, |