From: Andrew Morton drivers/rtc/rtc-rs5c313.c: In function 'rs5c313_read_reg': drivers/rtc/rtc-rs5c313.c:186: warning: implicit declaration of function 'rs5c313_write_data' drivers/rtc/rtc-rs5c313.c:187: warning: implicit declaration of function 'rs5c313_read_data' drivers/rtc/rtc-rs5c313.c: In function 'rs5c313_rtc_read_time': drivers/rtc/rtc-rs5c313.c:208: error: 'RS5C313_CEENABLE' undeclared (first use in this function) drivers/rtc/rtc-rs5c313.c:208: error: (Each undeclared identifier is reported only once drivers/rtc/rtc-rs5c313.c:208: error: for each function it appears in.) drivers/rtc/rtc-rs5c313.c:217: error: 'RS5C313_CEDISABLE' undeclared (first use in this function) drivers/rtc/rtc-rs5c313.c: In function 'rs5c313_rtc_set_time': drivers/rtc/rtc-rs5c313.c:265: error: 'RS5C313_CEENABLE' undeclared (first use in this function) drivers/rtc/rtc-rs5c313.c:273: error: 'RS5C313_MISCOP' undeclared (first use in this function) drivers/rtc/rtc-rs5c313.c:274: error: 'RS5C313_CEDISABLE' undeclared (first use in this function) drivers/rtc/rtc-rs5c313.c: In function 'rs5c313_check_xstp_bit': drivers/rtc/rtc-rs5c313.c:315: error: 'RS5C313_CEENABLE' undeclared (first use in this function) drivers/rtc/rtc-rs5c313.c:324: error: 'RS5C313_MISCOP' undeclared (first use in this function) drivers/rtc/rtc-rs5c313.c:336: error: 'RS5C313_CEDISABLE' undeclared (first use in this function) drivers/rtc/rtc-rs5c313.c: In function 'rs5c313_rtc_init': drivers/rtc/rtc-rs5c313.c:390: warning: implicit declaration of function 'rs5c313_init_port' Cc: Alessandro Zummo Cc: Nobuhiro Iwamatsu Signed-off-by: Andrew Morton --- drivers/rtc/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff -puN drivers/rtc/Kconfig~rtc-add-rtc-rs5c313-driver-is-busted drivers/rtc/Kconfig --- a/drivers/rtc/Kconfig~rtc-add-rtc-rs5c313-driver-is-busted +++ a/drivers/rtc/Kconfig @@ -366,7 +366,7 @@ config RTC_DRV_BFIN config RTC_DRV_RS5C313 tristate "Ricoh RS5C313" - depends on RTC_CLASS + depends on RTC_CLASS && BROKEN help If you say yes here you get support for the Ricoh RS5C313 RTC chips. _