aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-iop13xx
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-iop13xx')
-rw-r--r--arch/arm/mach-iop13xx/pci.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/arm/mach-iop13xx/pci.c b/arch/arm/mach-iop13xx/pci.c
index 9d63d7f260ca..99d94cb1bafd 100644
--- a/arch/arm/mach-iop13xx/pci.c
+++ b/arch/arm/mach-iop13xx/pci.c
@@ -1002,11 +1002,10 @@ int iop13xx_pci_setup(int nr, struct pci_sys_data *sys)
1002 if (nr > 1) 1002 if (nr > 1)
1003 return 0; 1003 return 0;
1004 1004
1005 res = kmalloc(sizeof(struct resource) * 2, GFP_KERNEL); 1005 res = kcalloc(2, sizeof(struct resource), GFP_KERNEL);
1006 if (!res) 1006 if (!res)
1007 panic("PCI: unable to alloc resources"); 1007 panic("PCI: unable to alloc resources");
1008 1008
1009 memset(res, 0, sizeof(struct resource) * 2);
1010 1009
1011 /* 'nr' assumptions: 1010 /* 'nr' assumptions:
1012 * ATUX is always 0 1011 * ATUX is always 0