diff options
Diffstat (limited to 'drivers/mfd/ab3100-core.c')
-rw-r--r-- | drivers/mfd/ab3100-core.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/mfd/ab3100-core.c b/drivers/mfd/ab3100-core.c index e4ca5909e424..16898211cd1a 100644 --- a/drivers/mfd/ab3100-core.c +++ b/drivers/mfd/ab3100-core.c | |||
@@ -920,6 +920,7 @@ static int __init ab3100_probe(struct i2c_client *client, | |||
920 | i2c_unregister_device(ab3100->testreg_client); | 920 | i2c_unregister_device(ab3100->testreg_client); |
921 | exit_no_testreg_client: | 921 | exit_no_testreg_client: |
922 | exit_no_detect: | 922 | exit_no_detect: |
923 | i2c_set_clientdata(client, NULL); | ||
923 | kfree(ab3100); | 924 | kfree(ab3100); |
924 | return err; | 925 | return err; |
925 | } | 926 | } |
@@ -941,6 +942,7 @@ static int __exit ab3100_remove(struct i2c_client *client) | |||
941 | * their notifiers so deactivate IRQ | 942 | * their notifiers so deactivate IRQ |
942 | */ | 943 | */ |
943 | free_irq(client->irq, ab3100); | 944 | free_irq(client->irq, ab3100); |
945 | i2c_set_clientdata(client, NULL); | ||
944 | kfree(ab3100); | 946 | kfree(ab3100); |
945 | return 0; | 947 | return 0; |
946 | } | 948 | } |