]> err.no Git - linux-2.6/blobdiff - arch/arm/mach-iop13xx/pci.c
[POWERPC] pasemi: Broaden specific references to 1682M
[linux-2.6] / arch / arm / mach-iop13xx / pci.c
index 306f82ee57f0a7a7e15e6f50ce34107922d51aa0..99d94cb1bafdc6818e96d4edc6bc64fbeb152a71 100644 (file)
 
 #include <linux/pci.h>
 #include <linux/delay.h>
-
+#include <linux/jiffies.h>
 #include <asm/irq.h>
 #include <asm/hardware.h>
 #include <asm/sizes.h>
+#include <asm/signal.h>
 #include <asm/mach/pci.h>
 #include <asm/arch/pci.h>
 
@@ -1001,11 +1002,10 @@ int iop13xx_pci_setup(int nr, struct pci_sys_data *sys)
        if (nr > 1)
                return 0;
 
-       res = kmalloc(sizeof(struct resource) * 2, GFP_KERNEL);
+       res = kcalloc(2, sizeof(struct resource), GFP_KERNEL);
        if (!res)
                panic("PCI: unable to alloc resources");
 
-       memset(res, 0, sizeof(struct resource) * 2);
 
        /* 'nr' assumptions:
         * ATUX is always 0