aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/pvrusb2/pvrusb2-i2c-core.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/video/pvrusb2/pvrusb2-i2c-core.c')
-rw-r--r--drivers/media/video/pvrusb2/pvrusb2-i2c-core.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/media/video/pvrusb2/pvrusb2-i2c-core.c b/drivers/media/video/pvrusb2/pvrusb2-i2c-core.c
index a28299107be7..223a571faff3 100644
--- a/drivers/media/video/pvrusb2/pvrusb2-i2c-core.c
+++ b/drivers/media/video/pvrusb2/pvrusb2-i2c-core.c
@@ -897,12 +897,11 @@ static int pvr2_i2c_attach_inform(struct i2c_client *client)
897 struct pvr2_hdw *hdw = (struct pvr2_hdw *)(client->adapter->algo_data); 897 struct pvr2_hdw *hdw = (struct pvr2_hdw *)(client->adapter->algo_data);
898 struct pvr2_i2c_client *cp; 898 struct pvr2_i2c_client *cp;
899 int fl = !(hdw->i2c_pend_types & PVR2_I2C_PEND_ALL); 899 int fl = !(hdw->i2c_pend_types & PVR2_I2C_PEND_ALL);
900 cp = kmalloc(sizeof(*cp),GFP_KERNEL); 900 cp = kzalloc(sizeof(*cp),GFP_KERNEL);
901 trace_i2c("i2c_attach [client=%s @ 0x%x ctxt=%p]", 901 trace_i2c("i2c_attach [client=%s @ 0x%x ctxt=%p]",
902 client->name, 902 client->name,
903 client->addr,cp); 903 client->addr,cp);
904 if (!cp) return -ENOMEM; 904 if (!cp) return -ENOMEM;
905 memset(cp,0,sizeof(*cp));
906 cp->hdw = hdw; 905 cp->hdw = hdw;
907 INIT_LIST_HEAD(&cp->list); 906 INIT_LIST_HEAD(&cp->list);
908 cp->client = client; 907 cp->client = client;