diff options
-rw-r--r-- | arch/powerpc/sysdev/mpic.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/arch/powerpc/sysdev/mpic.c b/arch/powerpc/sysdev/mpic.c index 32a2e950f563..d46de1f0f3ee 100644 --- a/arch/powerpc/sysdev/mpic.c +++ b/arch/powerpc/sysdev/mpic.c | |||
@@ -1053,11 +1053,10 @@ struct mpic * __init mpic_alloc(struct device_node *node, | |||
1053 | int intvec_top; | 1053 | int intvec_top; |
1054 | u64 paddr = phys_addr; | 1054 | u64 paddr = phys_addr; |
1055 | 1055 | ||
1056 | mpic = alloc_bootmem(sizeof(struct mpic)); | 1056 | mpic = kzalloc(sizeof(struct mpic), GFP_KERNEL); |
1057 | if (mpic == NULL) | 1057 | if (mpic == NULL) |
1058 | return NULL; | 1058 | return NULL; |
1059 | 1059 | ||
1060 | memset(mpic, 0, sizeof(struct mpic)); | ||
1061 | mpic->name = name; | 1060 | mpic->name = name; |
1062 | 1061 | ||
1063 | mpic->hc_irq = mpic_irq_chip; | 1062 | mpic->hc_irq = mpic_irq_chip; |