summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/dpc7146.c
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@infradead.org>2006-03-29 15:19:26 -0300
committerMauro Carvalho Chehab <mchehab@infradead.org>2006-03-29 15:19:26 -0300
commit6c7054ea82d8b4745c6293b852813671bbf8b5ba (patch)
tree4752f163c5782f38439b8d7361c2949a2981902a /linux/drivers/media/video/dpc7146.c
parenta7aa675c92fa3d11e83bf8990e98fd06e2c95459 (diff)
downloadmediapointer-dvb-s2-6c7054ea82d8b4745c6293b852813671bbf8b5ba.tar.gz
mediapointer-dvb-s2-6c7054ea82d8b4745c6293b852813671bbf8b5ba.tar.bz2
zmalloc changed to kzmalloc; semaphore to mutex
From: Mauro Carvalho Chehab <mchehab@infradead.org> kernel-sync Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'linux/drivers/media/video/dpc7146.c')
-rw-r--r--linux/drivers/media/video/dpc7146.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/linux/drivers/media/video/dpc7146.c b/linux/drivers/media/video/dpc7146.c
index 5cce40af6..3ee2cc6e3 100644
--- a/linux/drivers/media/video/dpc7146.c
+++ b/linux/drivers/media/video/dpc7146.c
@@ -95,12 +95,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 ?! */