]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - drivers/video/amba-clcd.c
some kmalloc/memset ->kzalloc (tree wide)
[net-next-2.6.git] / drivers / video / amba-clcd.c
index 6c9dc2e69c82f69d5a24a7e590fab50070451b9c..a7a1c891bfa2e0646a1e73757f47de70e017b77a 100644 (file)
@@ -447,13 +447,12 @@ static int clcdfb_probe(struct amba_device *dev, void *id)
                goto out;
        }
 
-       fb = kmalloc(sizeof(struct clcd_fb), GFP_KERNEL);
+       fb = kzalloc(sizeof(struct clcd_fb), GFP_KERNEL);
        if (!fb) {
                printk(KERN_INFO "CLCD: could not allocate new clcd_fb struct\n");
                ret = -ENOMEM;
                goto free_region;
        }
-       memset(fb, 0, sizeof(struct clcd_fb));
 
        fb->dev = dev;
        fb->board = board;