aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/pvrusb2/pvrusb2-tuner.c
diff options
context:
space:
mode:
authorMike Isely <isely@pobox.com>2007-01-19 22:37:11 -0500
committerMauro Carvalho Chehab <mchehab@infradead.org>2007-02-21 10:34:41 -0500
commitca545f7c39476c6c4c6e639452180a2b38342669 (patch)
treee9751274759bcdf51bff577f55a030d4f23dca90 /drivers/media/video/pvrusb2/pvrusb2-tuner.c
parenteca8ebfc11d1935a7dd4c59cb8defb5bdff44ecd (diff)
V4L/DVB (5091): Pvrusb2: Use kzalloc in place of kmalloc/memset pairs
Signed-off-by: Mike Isely <isely@pobox.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video/pvrusb2/pvrusb2-tuner.c')
-rw-r--r--drivers/media/video/pvrusb2/pvrusb2-tuner.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/media/video/pvrusb2/pvrusb2-tuner.c b/drivers/media/video/pvrusb2/pvrusb2-tuner.c
index bb17db3f6434..05e65ce2e3a9 100644
--- a/drivers/media/video/pvrusb2/pvrusb2-tuner.c
+++ b/drivers/media/video/pvrusb2/pvrusb2-tuner.c
@@ -93,9 +93,8 @@ int pvr2_i2c_tuner_setup(struct pvr2_hdw *hdw,struct pvr2_i2c_client *cp)
93 struct pvr2_tuner_handler *ctxt; 93 struct pvr2_tuner_handler *ctxt;
94 if (cp->handler) return 0; 94 if (cp->handler) return 0;
95 95
96 ctxt = kmalloc(sizeof(*ctxt),GFP_KERNEL); 96 ctxt = kzalloc(sizeof(*ctxt),GFP_KERNEL);
97 if (!ctxt) return 0; 97 if (!ctxt) return 0;
98 memset(ctxt,0,sizeof(*ctxt));
99 98
100 ctxt->i2c_handler.func_data = ctxt; 99 ctxt->i2c_handler.func_data = ctxt;
101 ctxt->i2c_handler.func_table = &tuner_funcs; 100 ctxt->i2c_handler.func_table = &tuner_funcs;