diff options
author | kogiidena <kogiidena@eggplant.ddo.jp> | 2007-05-11 01:22:54 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-05-11 11:29:35 -0400 |
commit | 9a3f1d53dbf112d2387f8b80682afc1084f9dfc3 (patch) | |
tree | 1304b92c3ada981b7f832a18f919270c246cb7a7 /drivers/rtc/rtc-rs5c313.c | |
parent | 3e88c553db938ad016026375f0545304b9030b42 (diff) |
rtc-rs5c313.c: error and warning are fixed
Correct a compile error and warning.
Signed-off-by: kogiidena <kogiidena@eggplant.ddo.jp>
Cc: Alessandro Zummo <a.zummo@towertech.it>
Cc: David Brownell <david-b@pacbell.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/rtc/rtc-rs5c313.c')
-rw-r--r-- | drivers/rtc/rtc-rs5c313.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/rtc/rtc-rs5c313.c b/drivers/rtc/rtc-rs5c313.c index 9d6de371495b..79ee371dd75b 100644 --- a/drivers/rtc/rtc-rs5c313.c +++ b/drivers/rtc/rtc-rs5c313.c | |||
@@ -126,7 +126,7 @@ static void rs5c313_write_data(unsigned char data) | |||
126 | static unsigned char rs5c313_read_data(void) | 126 | static unsigned char rs5c313_read_data(void) |
127 | { | 127 | { |
128 | int i; | 128 | int i; |
129 | unsigned char data; | 129 | unsigned char data = 0; |
130 | 130 | ||
131 | for (i = 0; i < 8; i++) { | 131 | for (i = 0; i < 8; i++) { |
132 | ndelay(700); | 132 | ndelay(700); |
@@ -194,7 +194,7 @@ static void rs5c313_write_reg(unsigned char addr, unsigned char data) | |||
194 | return; | 194 | return; |
195 | } | 195 | } |
196 | 196 | ||
197 | static inline unsigned char rs5c313_read_cntreg(unsigned char addr) | 197 | static inline unsigned char rs5c313_read_cntreg(void) |
198 | { | 198 | { |
199 | return rs5c313_read_reg(RS5C313_ADDR_CNTREG); | 199 | return rs5c313_read_reg(RS5C313_ADDR_CNTREG); |
200 | } | 200 | } |
@@ -356,7 +356,7 @@ static int rs5c313_rtc_probe(struct platform_device *pdev) | |||
356 | 356 | ||
357 | platform_set_drvdata(pdev, rtc); | 357 | platform_set_drvdata(pdev, rtc); |
358 | 358 | ||
359 | return err; | 359 | return 0; |
360 | } | 360 | } |
361 | 361 | ||
362 | static int __devexit rs5c313_rtc_remove(struct platform_device *pdev) | 362 | static int __devexit rs5c313_rtc_remove(struct platform_device *pdev) |