diff options
-rw-r--r-- | drivers/i2c/chips/m41t00.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/i2c/chips/m41t00.c b/drivers/i2c/chips/m41t00.c index 5e463c47bfbc..778d7e12859d 100644 --- a/drivers/i2c/chips/m41t00.c +++ b/drivers/i2c/chips/m41t00.c | |||
@@ -207,7 +207,7 @@ m41t00_detach(struct i2c_client *client) | |||
207 | int rc; | 207 | int rc; |
208 | 208 | ||
209 | if ((rc = i2c_detach_client(client)) == 0) { | 209 | if ((rc = i2c_detach_client(client)) == 0) { |
210 | kfree(i2c_get_clientdata(client)); | 210 | kfree(client); |
211 | tasklet_kill(&m41t00_tasklet); | 211 | tasklet_kill(&m41t00_tasklet); |
212 | } | 212 | } |
213 | return rc; | 213 | return rc; |