aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/bttv-gpio.c
diff options
context:
space:
mode:
authorPanagiotis Issaris <takis@issaris.org>2006-01-11 16:40:56 -0500
committerMauro Carvalho Chehab <mchehab@brturbo.com.br>2006-01-11 16:40:56 -0500
commit7408187d223f63d46a13b6a35b8f96b032c2f623 (patch)
tree425a459f760295de488f57e3f97b034aaa76a78d /drivers/media/video/bttv-gpio.c
parent0b3af1b6df82cfdb54ae294ed860263011fa0408 (diff)
V4L/DVB (3344a): Conversions from kmalloc+memset to k(z|c)alloc
Conversions from kmalloc+memset to k(z|c)alloc. Signed-off-by: Panagiotis Issaris <takis@issaris.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video/bttv-gpio.c')
-rw-r--r--drivers/media/video/bttv-gpio.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/media/video/bttv-gpio.c b/drivers/media/video/bttv-gpio.c
index 575ce8b8e714..d64accc17b0e 100644
--- a/drivers/media/video/bttv-gpio.c
+++ b/drivers/media/video/bttv-gpio.c
@@ -64,10 +64,9 @@ int bttv_sub_add_device(struct bttv_core *core, char *name)
64 struct bttv_sub_device *sub; 64 struct bttv_sub_device *sub;
65 int err; 65 int err;
66 66
67 sub = kmalloc(sizeof(*sub),GFP_KERNEL); 67 sub = kzalloc(sizeof(*sub),GFP_KERNEL);
68 if (NULL == sub) 68 if (NULL == sub)
69 return -ENOMEM; 69 return -ENOMEM;
70 memset(sub,0,sizeof(*sub));
71 70
72 sub->core = core; 71 sub->core = core;
73 sub->dev.parent = &core->pci->dev; 72 sub->dev.parent = &core->pci->dev;