diff options
author | Wolfram Sang <w.sang@pengutronix.de> | 2010-09-30 14:14:22 +0200 |
---|---|---|
committer | Jean Delvare <khali@endymion.delvare> | 2010-09-30 14:14:22 +0200 |
commit | 59bfee6e0682635c269fb271422e2595fa441c21 (patch) | |
tree | f7d137a35f8ae676c652e37650e8f049bae62e2c /drivers/rtc/rtc-ds3232.c | |
parent | 4193d9163582b05e33aca3392e46649e5c3da8d1 (diff) | |
download | linux-rpi3-59bfee6e0682635c269fb271422e2595fa441c21.tar.gz linux-rpi3-59bfee6e0682635c269fb271422e2595fa441c21.tar.bz2 linux-rpi3-59bfee6e0682635c269fb271422e2595fa441c21.zip |
i2c: Remove obsolete cleanup for clientdata
A few new i2c-drivers came into the kernel which clear the clientdata-pointer
on exit. This is obsolete meanwhile, so fix it and hope the word will spread.
Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Diffstat (limited to 'drivers/rtc/rtc-ds3232.c')
-rw-r--r-- | drivers/rtc/rtc-ds3232.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/rtc/rtc-ds3232.c b/drivers/rtc/rtc-ds3232.c index 9daed8db83d3..9de8516e3531 100644 --- a/drivers/rtc/rtc-ds3232.c +++ b/drivers/rtc/rtc-ds3232.c @@ -268,7 +268,6 @@ out_irq: free_irq(client->irq, client); out_free: - i2c_set_clientdata(client, NULL); kfree(ds3232); return ret; } @@ -287,7 +286,6 @@ static int __devexit ds3232_remove(struct i2c_client *client) } rtc_device_unregister(ds3232->rtc); - i2c_set_clientdata(client, NULL); kfree(ds3232); return 0; } |