diff options
Diffstat (limited to 'arch/arm/mach-iop3xx/iq31244-pci.c')
-rw-r--r-- | arch/arm/mach-iop3xx/iq31244-pci.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/arm/mach-iop3xx/iq31244-pci.c b/arch/arm/mach-iop3xx/iq31244-pci.c index c6a973ba8fc6..f3c6413fa5bd 100644 --- a/arch/arm/mach-iop3xx/iq31244-pci.c +++ b/arch/arm/mach-iop3xx/iq31244-pci.c | |||
@@ -74,12 +74,10 @@ static int iq31244_setup(int nr, struct pci_sys_data *sys) | |||
74 | if(nr != 0) | 74 | if(nr != 0) |
75 | return 0; | 75 | return 0; |
76 | 76 | ||
77 | res = kmalloc(sizeof(struct resource) * 2, GFP_KERNEL); | 77 | res = kzalloc(sizeof(struct resource) * 2, GFP_KERNEL); |
78 | if (!res) | 78 | if (!res) |
79 | panic("PCI: unable to alloc resources"); | 79 | panic("PCI: unable to alloc resources"); |
80 | 80 | ||
81 | memset(res, 0, sizeof(struct resource) * 2); | ||
82 | |||
83 | res[0].start = IOP321_PCI_LOWER_IO_VA; | 81 | res[0].start = IOP321_PCI_LOWER_IO_VA; |
84 | res[0].end = IOP321_PCI_UPPER_IO_VA; | 82 | res[0].end = IOP321_PCI_UPPER_IO_VA; |
85 | res[0].name = "IQ31244 PCI I/O Space"; | 83 | res[0].name = "IQ31244 PCI I/O Space"; |