lkml.org 
[lkml]   [2007]   [May]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
Subject[PATCH 1/3] rtc:rtc-rs5c313.c : error and warning are fixed.
From
The following patch is a patch that corrects the compile error and warning.
Please apply.

Signed-off-by: kogiidena <kogiidena@eggplant.ddo.jp>
---
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 majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2007-05-09 14:03    [W:0.026 / U:0.288 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site