aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/go7007/wis-tw9903.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/staging/go7007/wis-tw9903.c')
-rw-r--r--drivers/staging/go7007/wis-tw9903.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/staging/go7007/wis-tw9903.c b/drivers/staging/go7007/wis-tw9903.c
index 3ac6f785c4ad..2afea09091b9 100644
--- a/drivers/staging/go7007/wis-tw9903.c
+++ b/drivers/staging/go7007/wis-tw9903.c
@@ -294,6 +294,7 @@ static int wis_tw9903_probe(struct i2c_client *client,
if (write_regs(client, initial_registers) < 0) {
printk(KERN_ERR "wis-tw9903: error initializing TW9903\n");
+ i2c_set_clientdata(client, NULL);
kfree(dec);
return -ENODEV;
}