aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/rtc/rtc-ds1374.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/rtc/rtc-ds1374.c')
-rw-r--r--drivers/rtc/rtc-ds1374.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/rtc/rtc-ds1374.c b/drivers/rtc/rtc-ds1374.c
index 5317bbcbc7a0..1f0007fd4431 100644
--- a/drivers/rtc/rtc-ds1374.c
+++ b/drivers/rtc/rtc-ds1374.c
@@ -24,6 +24,7 @@
24#include <linux/rtc.h> 24#include <linux/rtc.h>
25#include <linux/bcd.h> 25#include <linux/bcd.h>
26#include <linux/workqueue.h> 26#include <linux/workqueue.h>
27#include <linux/slab.h>
27 28
28#define DS1374_REG_TOD0 0x00 /* Time of Day */ 29#define DS1374_REG_TOD0 0x00 /* Time of Day */
29#define DS1374_REG_TOD1 0x01 30#define DS1374_REG_TOD1 0x01
@@ -402,7 +403,6 @@ out_irq:
402 free_irq(client->irq, client); 403 free_irq(client->irq, client);
403 404
404out_free: 405out_free:
405 i2c_set_clientdata(client, NULL);
406 kfree(ds1374); 406 kfree(ds1374);
407 return ret; 407 return ret;
408} 408}
@@ -421,7 +421,6 @@ static int __devexit ds1374_remove(struct i2c_client *client)
421 } 421 }
422 422
423 rtc_device_unregister(ds1374->rtc); 423 rtc_device_unregister(ds1374->rtc);
424 i2c_set_clientdata(client, NULL);
425 kfree(ds1374); 424 kfree(ds1374);
426 return 0; 425 return 0;
427} 426}