diff options
Diffstat (limited to 'drivers/media/video/pvrusb2/pvrusb2-tuner.c')
-rw-r--r-- | drivers/media/video/pvrusb2/pvrusb2-tuner.c | 3 |
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; |