[PATCH 1/3] rtc:rtc-rs5c313.c : error and warning are fixed.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The following patch is a patch that corrects the compile error and warning.
Please apply.

Signed-off-by: kogiidena <[email protected]>
---
diff -urpN OLD/drivers/rtc/Kconfig NEW/drivers/rtc/Kconfig
--- OLD/drivers/rtc/Kconfig	2007-05-07 12:12:02.000000000 +0900
+++ NEW/drivers/rtc/Kconfig	2007-05-08 19:30:53.000000000 +0900
@@ -396,7 +396,7 @@ config RTC_DRV_BFIN

 config RTC_DRV_RS5C313
 	tristate "Ricoh RS5C313"
-	depends on RTC_CLASS && BROKEN
+	depends on RTC_CLASS && SH_LANDISK
 	help
 	  If you say yes here you get support for the Ricoh RS5C313 RTC chips.

diff -urpN OLD/drivers/rtc/rtc-rs5c313.c NEW/drivers/rtc/rtc-rs5c313.c
--- OLD/drivers/rtc/rtc-rs5c313.c	2007-05-07 12:12:02.000000000 +0900
+++ NEW/drivers/rtc/rtc-rs5c313.c	2007-05-08 19:36:51.000000000 +0900
@@ -126,7 +126,7 @@ static void rs5c313_write_data(unsigned
 static unsigned char rs5c313_read_data(void)
 {
 	int i;
-	unsigned char data;
+	unsigned char data = 0;

 	for (i = 0; i < 8; i++) {
 		ndelay(700);
@@ -194,7 +194,7 @@ static void rs5c313_write_reg(unsigned c
 	return;
 }

-static inline unsigned char rs5c313_read_cntreg(unsigned char addr)
+static inline unsigned char rs5c313_read_cntreg(void)
 {
 	return rs5c313_read_reg(RS5C313_ADDR_CNTREG);
 }
@@ -356,7 +356,7 @@ static int rs5c313_rtc_probe(struct plat

 	platform_set_drvdata(pdev, rtc);

-	return err;
+	return 0;
 }

 static int __devexit rs5c313_rtc_remove(struct platform_device *pdev)




-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux