diff options
Diffstat (limited to 'arch/powerpc/sysdev/mpic_msi.c')
-rw-r--r-- | arch/powerpc/sysdev/mpic_msi.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/arch/powerpc/sysdev/mpic_msi.c b/arch/powerpc/sysdev/mpic_msi.c index 9ca4d8f444ff..d272a52ecd24 100644 --- a/arch/powerpc/sysdev/mpic_msi.c +++ b/arch/powerpc/sysdev/mpic_msi.c | |||
@@ -9,7 +9,6 @@ | |||
9 | */ | 9 | */ |
10 | 10 | ||
11 | #include <linux/irq.h> | 11 | #include <linux/irq.h> |
12 | #include <linux/bootmem.h> | ||
13 | #include <linux/bitmap.h> | 12 | #include <linux/bitmap.h> |
14 | #include <linux/msi.h> | 13 | #include <linux/msi.h> |
15 | #include <asm/mpic.h> | 14 | #include <asm/mpic.h> |
@@ -152,10 +151,7 @@ int mpic_msi_init_allocator(struct mpic *mpic) | |||
152 | size = BITS_TO_LONGS(mpic->irq_count) * sizeof(long); | 151 | size = BITS_TO_LONGS(mpic->irq_count) * sizeof(long); |
153 | pr_debug("mpic: allocator bitmap size is 0x%x bytes\n", size); | 152 | pr_debug("mpic: allocator bitmap size is 0x%x bytes\n", size); |
154 | 153 | ||
155 | if (mem_init_done) | 154 | mpic->hwirq_bitmap = alloc_maybe_bootmem(size, GFP_KERNEL); |
156 | mpic->hwirq_bitmap = kmalloc(size, GFP_KERNEL); | ||
157 | else | ||
158 | mpic->hwirq_bitmap = alloc_bootmem(size); | ||
159 | 155 | ||
160 | if (!mpic->hwirq_bitmap) { | 156 | if (!mpic->hwirq_bitmap) { |
161 | pr_debug("mpic: ENOMEM allocating allocator bitmap!\n"); | 157 | pr_debug("mpic: ENOMEM allocating allocator bitmap!\n"); |