This patch changes rtc_get() to return an int. Without this change
the tree does not compile for gta01bv4.

Signed-off-by: Mike Montour <[EMAIL PROTECTED]>

diff --git a/drivers/misc/pcf50606.c b/drivers/misc/pcf50606.c
index 382f18a..cac2bbb 100644
--- a/drivers/misc/pcf50606.c
+++ b/drivers/misc/pcf50606.c
@@ -124,7 +124,7 @@ static unsigned char bin2bcd (unsigned int n)
 }


-void rtc_get(struct rtc_time *tmp)
+int rtc_get(struct rtc_time *tmp)
 {
        tmp->tm_sec = bcd2bin(pcf50606_reg_read(PCF50606_REG_RTCSC));
        tmp->tm_min = bcd2bin(pcf50606_reg_read(PCF50606_REG_RTCMN));
@@ -139,6 +139,8 @@ void rtc_get(struct rtc_time *tmp)
                tmp->tm_year += 1900;
        tmp->tm_yday = 0;
        tmp->tm_isdst = 0;
+       
+       return 0;
 }

 void rtc_set(struct rtc_time *tmp)
--
1.5.2.4


Reply via email to