ARM: edma: use kzalloc()
[sitara-epos/sitara-epos-kernel.git] / arch / arm / common / edma.c
index 64eca18e6a4b04ffa0c8d978b5cb171d7bef20de..4d6dd7ddab472d186c5ea481ee7c0d0d83f86e4f 100644 (file)
@@ -1387,12 +1387,11 @@ static int __init edma_probe(struct platform_device *pdev)
                        goto fail1;
                }
 
-               edma_cc[j] = kmalloc(sizeof(struct edma), GFP_KERNEL);
+               edma_cc[j] = kzalloc(sizeof(struct edma), GFP_KERNEL);
                if (!edma_cc[j]) {
                        status = -ENOMEM;
                        goto fail1;
                }
-               memset(edma_cc[j], 0, sizeof(struct edma));
 
                edma_cc[j]->num_channels = min_t(unsigned, info[j].n_channel,
                                                        EDMA_MAX_DMACH);