aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/rtc/rtc-rs5c313.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/rtc/rtc-rs5c313.c')
-rw-r--r--drivers/rtc/rtc-rs5c313.c6
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)
126static unsigned char rs5c313_read_data(void) 126static 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
197static inline unsigned char rs5c313_read_cntreg(unsigned char addr) 197static 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
362static int __devexit rs5c313_rtc_remove(struct platform_device *pdev) 362static int __devexit rs5c313_rtc_remove(struct platform_device *pdev)