V4L/DVB (3386): fix some sound quality & distortion problems.
[safe/jmp/linux-2.6] / drivers / media / video / dpc7146.c
index da94811..2831bdd 100644 (file)
@@ -94,12 +94,11 @@ static int dpc_probe(struct saa7146_dev* dev)
        struct i2c_client *client;
        struct list_head *item;
 
-       dpc = (struct dpc*)kmalloc(sizeof(struct dpc), GFP_KERNEL);
+       dpc = kzalloc(sizeof(struct dpc), GFP_KERNEL);
        if( NULL == dpc ) {
                printk("dpc_v4l2.o: dpc_probe: not enough kernel memory.\n");
                return -ENOMEM;
        }
-       memset(dpc, 0x0, sizeof(struct dpc));   
 
        /* FIXME: enable i2c-port pins, video-port-pins
           video port pins should be enabled here ?! */