diff options
-rw-r--r-- | drivers/i2c/chips/tps65010.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/i2c/chips/tps65010.c b/drivers/i2c/chips/tps65010.c index b67f69c2e7f3..feabd12c081c 100644 --- a/drivers/i2c/chips/tps65010.c +++ b/drivers/i2c/chips/tps65010.c | |||
@@ -527,6 +527,7 @@ static int __exit tps65010_remove(struct i2c_client *client) | |||
527 | flush_scheduled_work(); | 527 | flush_scheduled_work(); |
528 | debugfs_remove(tps->file); | 528 | debugfs_remove(tps->file); |
529 | kfree(tps); | 529 | kfree(tps); |
530 | i2c_set_clientdata(client, NULL); | ||
530 | the_tps = NULL; | 531 | the_tps = NULL; |
531 | return 0; | 532 | return 0; |
532 | } | 533 | } |
@@ -615,6 +616,7 @@ static int tps65010_probe(struct i2c_client *client) | |||
615 | i2c_smbus_read_byte_data(client, TPS_DEFGPIO), | 616 | i2c_smbus_read_byte_data(client, TPS_DEFGPIO), |
616 | i2c_smbus_read_byte_data(client, TPS_MASK3)); | 617 | i2c_smbus_read_byte_data(client, TPS_MASK3)); |
617 | 618 | ||
619 | i2c_set_clientdata(client, tps); | ||
618 | the_tps = tps; | 620 | the_tps = tps; |
619 | 621 | ||
620 | #if defined(CONFIG_USB_GADGET) && !defined(CONFIG_USB_OTG) | 622 | #if defined(CONFIG_USB_GADGET) && !defined(CONFIG_USB_OTG) |