diff options
Diffstat (limited to 'arch/powerpc/kernel/pci_dn.c')
-rw-r--r-- | arch/powerpc/kernel/pci_dn.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/powerpc/kernel/pci_dn.c b/arch/powerpc/kernel/pci_dn.c index d225d99fe39d..6baabc13306a 100644 --- a/arch/powerpc/kernel/pci_dn.c +++ b/arch/powerpc/kernel/pci_dn.c | |||
@@ -43,10 +43,9 @@ void * __devinit update_dn_pci_info(struct device_node *dn, void *data) | |||
43 | const u32 *regs; | 43 | const u32 *regs; |
44 | struct pci_dn *pdn; | 44 | struct pci_dn *pdn; |
45 | 45 | ||
46 | pdn = alloc_maybe_bootmem(sizeof(*pdn), GFP_KERNEL); | 46 | pdn = zalloc_maybe_bootmem(sizeof(*pdn), GFP_KERNEL); |
47 | if (pdn == NULL) | 47 | if (pdn == NULL) |
48 | return NULL; | 48 | return NULL; |
49 | memset(pdn, 0, sizeof(*pdn)); | ||
50 | dn->data = pdn; | 49 | dn->data = pdn; |
51 | pdn->node = dn; | 50 | pdn->node = dn; |
52 | pdn->phb = phb; | 51 | pdn->phb = phb; |