[ARM] 3816/1: iop3xx: rename config symbols
[deliverable/linux.git] / arch / arm / mach-iop3xx / iq80331-pci.c
index 654e450a131170a28997f1a674bbff09c0cd160a..40d861002492e070b30c04ac5d7b8ef17c451bac 100644 (file)
@@ -64,12 +64,10 @@ static int iq80331_setup(int nr, struct pci_sys_data *sys)
        if(nr != 0)
                return 0;
 
-       res = kmalloc(sizeof(struct resource) * 2, GFP_KERNEL);
+       res = kzalloc(sizeof(struct resource) * 2, GFP_KERNEL);
        if (!res)
                panic("PCI: unable to alloc resources");
 
-       memset(res, 0, sizeof(struct resource) * 2);
-
        res[0].start = IOP331_PCI_LOWER_IO_VA;
        res[0].end   = IOP331_PCI_UPPER_IO_VA;
        res[0].name  = "IQ80331 PCI I/O Space";
This page took 0.029562 seconds and 5 git commands to generate.