]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/parisc/sba_iommu.c
[PARISC] Use kzalloc and other janitor-style cleanups
[linux-2.6-omap-h63xx.git] / drivers / parisc / sba_iommu.c
index c85653f315aad47be0b758863356e95b53c27b60..52f265e97729d14a32e50dd2e71f462245bf0e57 100644 (file)
@@ -2064,14 +2064,13 @@ sba_driver_callback(struct parisc_device *dev)
        printk(KERN_INFO "%s found %s at 0x%lx\n",
                MODULE_NAME, version, dev->hpa.start);
 
-       sba_dev = kmalloc(sizeof(struct sba_device), GFP_KERNEL);
+       sba_dev = kzalloc(sizeof(struct sba_device), GFP_KERNEL);
        if (!sba_dev) {
                printk(KERN_ERR MODULE_NAME " - couldn't alloc sba_device\n");
                return -ENOMEM;
        }
 
        parisc_set_drvdata(dev, sba_dev);
-       memset(sba_dev, 0, sizeof(struct sba_device));
 
        for(i=0; i<MAX_IOC; i++)
                spin_lock_init(&(sba_dev->ioc[i].res_lock));