diff options
author | Andrea Bastoni <bastoni@cs.unc.edu> | 2010-05-30 19:16:45 -0400 |
---|---|---|
committer | Andrea Bastoni <bastoni@cs.unc.edu> | 2010-05-30 19:16:45 -0400 |
commit | ada47b5fe13d89735805b566185f4885f5a3f750 (patch) | |
tree | 644b88f8a71896307d71438e9b3af49126ffb22b /drivers/rtc/rtc-ds1302.c | |
parent | 43e98717ad40a4ae64545b5ba047c7b86aa44f4f (diff) | |
parent | 3280f21d43ee541f97f8cda5792150d2dbec20d5 (diff) |
Merge branch 'wip-2.6.34' into old-private-masterarchived-private-master
Diffstat (limited to 'drivers/rtc/rtc-ds1302.c')
-rw-r--r-- | drivers/rtc/rtc-ds1302.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/rtc/rtc-ds1302.c b/drivers/rtc/rtc-ds1302.c index d490628b64da..532acf9b05d8 100644 --- a/drivers/rtc/rtc-ds1302.c +++ b/drivers/rtc/rtc-ds1302.c | |||
@@ -143,7 +143,6 @@ static int ds1302_rtc_ioctl(struct device *dev, unsigned int cmd, | |||
143 | #ifdef RTC_SET_CHARGE | 143 | #ifdef RTC_SET_CHARGE |
144 | case RTC_SET_CHARGE: | 144 | case RTC_SET_CHARGE: |
145 | { | 145 | { |
146 | struct ds1302_rtc *rtc = dev_get_drvdata(dev); | ||
147 | int tcs_val; | 146 | int tcs_val; |
148 | 147 | ||
149 | if (copy_from_user(&tcs_val, (int __user *)arg, sizeof(int))) | 148 | if (copy_from_user(&tcs_val, (int __user *)arg, sizeof(int))) |
@@ -201,7 +200,7 @@ static struct platform_driver ds1302_platform_driver = { | |||
201 | .name = DRV_NAME, | 200 | .name = DRV_NAME, |
202 | .owner = THIS_MODULE, | 201 | .owner = THIS_MODULE, |
203 | }, | 202 | }, |
204 | .remove = __exit_p(ds1302_rtc_remove), | 203 | .remove = __devexit_p(ds1302_rtc_remove), |
205 | }; | 204 | }; |
206 | 205 | ||
207 | static int __init ds1302_rtc_init(void) | 206 | static int __init ds1302_rtc_init(void) |