]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/media/video/ovcamchip/ov7x20.c
dock: make dock driver not a module
[linux-2.6-omap-h63xx.git] / drivers / media / video / ovcamchip / ov7x20.c
index 3c8c48f338bafff423d17b732111e34eb19167f3..8e26ae338f317a28910a02be71c83d3bb1da7655 100644 (file)
@@ -232,10 +232,9 @@ static int ov7x20_init(struct i2c_client *c)
        if (rc < 0)
                return rc;
 
-       ov->spriv = s = kmalloc(sizeof *s, GFP_KERNEL);
+       ov->spriv = s = kzalloc(sizeof *s, GFP_KERNEL);
        if (!s)
                return -ENOMEM;
-       memset(s, 0, sizeof *s);
 
        s->auto_brt = 1;
        s->auto_exp = DFL_AUTO_EXP;