diff options
Diffstat (limited to 'arch/arm/kernel/bios32.c')
-rw-r--r-- | arch/arm/kernel/bios32.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/arm/kernel/bios32.c b/arch/arm/kernel/bios32.c index c4923fac8dff..de606dfa8db9 100644 --- a/arch/arm/kernel/bios32.c +++ b/arch/arm/kernel/bios32.c | |||
@@ -540,12 +540,10 @@ static void __init pcibios_init_hw(struct hw_pci *hw) | |||
540 | int nr, busnr; | 540 | int nr, busnr; |
541 | 541 | ||
542 | for (nr = busnr = 0; nr < hw->nr_controllers; nr++) { | 542 | for (nr = busnr = 0; nr < hw->nr_controllers; nr++) { |
543 | sys = kmalloc(sizeof(struct pci_sys_data), GFP_KERNEL); | 543 | sys = kzalloc(sizeof(struct pci_sys_data), GFP_KERNEL); |
544 | if (!sys) | 544 | if (!sys) |
545 | panic("PCI: unable to allocate sys data!"); | 545 | panic("PCI: unable to allocate sys data!"); |
546 | 546 | ||
547 | memset(sys, 0, sizeof(struct pci_sys_data)); | ||
548 | |||
549 | sys->hw = hw; | 547 | sys->hw = hw; |
550 | sys->busnr = busnr; | 548 | sys->busnr = busnr; |
551 | sys->swizzle = hw->swizzle; | 549 | sys->swizzle = hw->swizzle; |