V4L/DVB (11159): pvrusb2: Providing means to stop tracking an old i2c module
[deliverable/linux.git] / drivers / media / video / pvrusb2 / pvrusb2-tuner.c
index bb17db3f6434a6e50f1bfea5bffe2095145bf26d..ee9c9c139a85ab0352182dda92dd171126f71e71 100644 (file)
@@ -1,6 +1,5 @@
 /*
  *
- *  $Id$
  *
  *  Copyright (C) 2005 Mike Isely <isely@pobox.com>
  *  Copyright (C) 2004 Aurelien Alleaume <slts@free.fr>
@@ -29,6 +28,7 @@
 #include <media/tuner.h>
 #include <media/v4l2-common.h>
 
+
 struct pvr2_tuner_handler {
        struct pvr2_hdw *hdw;
        struct pvr2_i2c_client *client;
@@ -93,9 +93,8 @@ int pvr2_i2c_tuner_setup(struct pvr2_hdw *hdw,struct pvr2_i2c_client *cp)
        struct pvr2_tuner_handler *ctxt;
        if (cp->handler) return 0;
 
-       ctxt = kmalloc(sizeof(*ctxt),GFP_KERNEL);
+       ctxt = kzalloc(sizeof(*ctxt),GFP_KERNEL);
        if (!ctxt) return 0;
-       memset(ctxt,0,sizeof(*ctxt));
 
        ctxt->i2c_handler.func_data = ctxt;
        ctxt->i2c_handler.func_table = &tuner_funcs;
This page took 0.028015 seconds and 5 git commands to generate.