aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/bttv-gpio.c
diff options
context:
space:
mode:
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;