summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/bttv-gpio.c
diff options
context:
space:
mode:
Diffstat (limited to 'linux/drivers/media/video/bttv-gpio.c')
-rw-r--r--linux/drivers/media/video/bttv-gpio.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/linux/drivers/media/video/bttv-gpio.c b/linux/drivers/media/video/bttv-gpio.c
index c17feb954..f2ec2e787 100644
--- a/linux/drivers/media/video/bttv-gpio.c
+++ b/linux/drivers/media/video/bttv-gpio.c
@@ -1,5 +1,5 @@
/*
- $Id: bttv-gpio.c,v 1.10 2005/12/10 17:51:31 rmcc Exp $
+ $Id: bttv-gpio.c,v 1.11 2006/01/11 19:28:02 mchehab Exp $
bttv-gpio.c -- gpio sub drivers
@@ -65,10 +65,9 @@ int bttv_sub_add_device(struct bttv_core *core, char *name)
struct bttv_sub_device *sub;
int err;
- sub = kmalloc(sizeof(*sub),GFP_KERNEL);
+ sub = kzalloc(sizeof(*sub),GFP_KERNEL);
if (NULL == sub)
return -ENOMEM;
- memset(sub,0,sizeof(*sub));
sub->core = core;
sub->dev.parent = &core->pci->dev;