diff options
| author | Thomas Gleixner <tglx@linutronix.de> | 2008-05-18 05:54:43 -0400 |
|---|---|---|
| committer | Thomas Gleixner <tglx@linutronix.de> | 2008-05-18 05:54:43 -0400 |
| commit | b4ef290d7c3abd1bf8cefcf8def359537fda7f31 (patch) | |
| tree | f3e270923fa36c773eee3bb1f9981aab1711d938 /drivers/rtc | |
| parent | 77b52b4c5c66175553ee59eb43f74366f1e54bde (diff) | |
| parent | f26a3988917913b3d11b2bd741601a2c64ab9204 (diff) | |
Merge branch 'linus' into x86/pat
Diffstat (limited to 'drivers/rtc')
| -rw-r--r-- | drivers/rtc/rtc-lib.c | 2 | ||||
| -rw-r--r-- | drivers/rtc/rtc-m41t80.c | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/drivers/rtc/rtc-lib.c b/drivers/rtc/rtc-lib.c index ba795a4db1e9..9f996ec881ce 100644 --- a/drivers/rtc/rtc-lib.c +++ b/drivers/rtc/rtc-lib.c | |||
| @@ -51,7 +51,7 @@ EXPORT_SYMBOL(rtc_year_days); | |||
| 51 | */ | 51 | */ |
| 52 | void rtc_time_to_tm(unsigned long time, struct rtc_time *tm) | 52 | void rtc_time_to_tm(unsigned long time, struct rtc_time *tm) |
| 53 | { | 53 | { |
| 54 | register int days, month, year; | 54 | unsigned int days, month, year; |
| 55 | 55 | ||
| 56 | days = time / 86400; | 56 | days = time / 86400; |
| 57 | time -= days * 86400; | 57 | time -= days * 86400; |
diff --git a/drivers/rtc/rtc-m41t80.c b/drivers/rtc/rtc-m41t80.c index 316bfaa80872..a3e0880b38fb 100644 --- a/drivers/rtc/rtc-m41t80.c +++ b/drivers/rtc/rtc-m41t80.c | |||
| @@ -15,6 +15,7 @@ | |||
| 15 | 15 | ||
| 16 | #include <linux/module.h> | 16 | #include <linux/module.h> |
| 17 | #include <linux/init.h> | 17 | #include <linux/init.h> |
| 18 | #include <linux/kernel.h> | ||
| 18 | #include <linux/slab.h> | 19 | #include <linux/slab.h> |
| 19 | #include <linux/string.h> | 20 | #include <linux/string.h> |
| 20 | #include <linux/i2c.h> | 21 | #include <linux/i2c.h> |
| @@ -803,6 +804,7 @@ static int m41t80_probe(struct i2c_client *client, | |||
| 803 | 804 | ||
| 804 | #ifdef CONFIG_RTC_DRV_M41T80_WDT | 805 | #ifdef CONFIG_RTC_DRV_M41T80_WDT |
| 805 | if (clientdata->features & M41T80_FEATURE_HT) { | 806 | if (clientdata->features & M41T80_FEATURE_HT) { |
| 807 | save_client = client; | ||
| 806 | rc = misc_register(&wdt_dev); | 808 | rc = misc_register(&wdt_dev); |
| 807 | if (rc) | 809 | if (rc) |
| 808 | goto exit; | 810 | goto exit; |
| @@ -811,7 +813,6 @@ static int m41t80_probe(struct i2c_client *client, | |||
| 811 | misc_deregister(&wdt_dev); | 813 | misc_deregister(&wdt_dev); |
| 812 | goto exit; | 814 | goto exit; |
| 813 | } | 815 | } |
| 814 | save_client = client; | ||
| 815 | } | 816 | } |
| 816 | #endif | 817 | #endif |
| 817 | return 0; | 818 | return 0; |
