diff options
Diffstat (limited to 'arch/arm/mach-iop3xx/iq80332-pci.c')
-rw-r--r-- | arch/arm/mach-iop3xx/iq80332-pci.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/arm/mach-iop3xx/iq80332-pci.c b/arch/arm/mach-iop3xx/iq80332-pci.c index 65951ffe4631..afc0676318e4 100644 --- a/arch/arm/mach-iop3xx/iq80332-pci.c +++ b/arch/arm/mach-iop3xx/iq80332-pci.c | |||
@@ -70,12 +70,10 @@ static int iq80332_setup(int nr, struct pci_sys_data *sys) | |||
70 | if(nr != 0) | 70 | if(nr != 0) |
71 | return 0; | 71 | return 0; |
72 | 72 | ||
73 | res = kmalloc(sizeof(struct resource) * 2, GFP_KERNEL); | 73 | res = kzalloc(sizeof(struct resource) * 2, GFP_KERNEL); |
74 | if (!res) | 74 | if (!res) |
75 | panic("PCI: unable to alloc resources"); | 75 | panic("PCI: unable to alloc resources"); |
76 | 76 | ||
77 | memset(res, 0, sizeof(struct resource) * 2); | ||
78 | |||
79 | res[0].start = IOP331_PCI_LOWER_IO_VA; | 77 | res[0].start = IOP331_PCI_LOWER_IO_VA; |
80 | res[0].end = IOP331_PCI_UPPER_IO_VA; | 78 | res[0].end = IOP331_PCI_UPPER_IO_VA; |
81 | res[0].name = "IQ80332 PCI I/O Space"; | 79 | res[0].name = "IQ80332 PCI I/O Space"; |