aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/pvrusb2/pvrusb2-audio.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/video/pvrusb2/pvrusb2-audio.c')
-rw-r--r--drivers/media/video/pvrusb2/pvrusb2-audio.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/media/video/pvrusb2/pvrusb2-audio.c b/drivers/media/video/pvrusb2/pvrusb2-audio.c
index 5d30c9366144..7e61d4a17846 100644
--- a/drivers/media/video/pvrusb2/pvrusb2-audio.c
+++ b/drivers/media/video/pvrusb2/pvrusb2-audio.c
@@ -152,9 +152,8 @@ int pvr2_i2c_msp3400_setup(struct pvr2_hdw *hdw,struct pvr2_i2c_client *cp)
152 struct pvr2_msp3400_handler *ctxt; 152 struct pvr2_msp3400_handler *ctxt;
153 if (cp->handler) return 0; 153 if (cp->handler) return 0;
154 154
155 ctxt = kmalloc(sizeof(*ctxt),GFP_KERNEL); 155 ctxt = kzalloc(sizeof(*ctxt),GFP_KERNEL);
156 if (!ctxt) return 0; 156 if (!ctxt) return 0;
157 memset(ctxt,0,sizeof(*ctxt));
158 157
159 ctxt->i2c_handler.func_data = ctxt; 158 ctxt->i2c_handler.func_data = ctxt;
160 ctxt->i2c_handler.func_table = &msp3400_funcs; 159 ctxt->i2c_handler.func_table = &msp3400_funcs;