diff options
author | Mauro Carvalho Chehab <mchehab@infradead.org> | 2006-03-29 15:19:26 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2006-03-29 15:19:26 -0300 |
commit | 6c7054ea82d8b4745c6293b852813671bbf8b5ba (patch) | |
tree | 4752f163c5782f38439b8d7361c2949a2981902a /linux/drivers/media/video/tea6420.c | |
parent | a7aa675c92fa3d11e83bf8990e98fd06e2c95459 (diff) | |
download | mediapointer-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/tea6420.c')
-rw-r--r-- | linux/drivers/media/video/tea6420.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/linux/drivers/media/video/tea6420.c b/linux/drivers/media/video/tea6420.c index 72ed34e08..9896661da 100644 --- a/linux/drivers/media/video/tea6420.c +++ b/linux/drivers/media/video/tea6420.c @@ -109,11 +109,10 @@ static int tea6420_detect(struct i2c_adapter *adapter, int address, int kind) } /* allocate memory for client structure */ - client = kmalloc(sizeof(struct i2c_client), GFP_KERNEL); + client = kzalloc(sizeof(struct i2c_client), GFP_KERNEL); if (0 == client) { return -ENOMEM; } - memset(client, 0x0, sizeof(struct i2c_client)); /* fill client structure */ memcpy(client, &client_template, sizeof(struct i2c_client)); |