]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/mfd/ucb1x00-core.c
ARM: OMAP2: Force APLLs always active
[linux-2.6-omap-h63xx.git] / drivers / mfd / ucb1x00-core.c
index 149810a084f5e0a9e5463dd2326f716198251318..e03f1bcd4f9f2621be307cba72b35b3ac4df75dd 100644 (file)
@@ -484,12 +484,11 @@ static int ucb1x00_probe(struct mcp *mcp)
                goto err_disable;
        }
 
-       ucb = kmalloc(sizeof(struct ucb1x00), GFP_KERNEL);
+       ucb = kzalloc(sizeof(struct ucb1x00), GFP_KERNEL);
        ret = -ENOMEM;
        if (!ucb)
                goto err_disable;
 
-       memset(ucb, 0, sizeof(struct ucb1x00));
 
        ucb->cdev.class = &ucb1x00_class;
        ucb->cdev.dev = &mcp->attached_device;