parisc: rtc: get_rtc_time() returns unsigned int
authorGeert Uytterhoeven <Geert.Uytterhoeven@sonycom.com>
Fri, 6 Mar 2009 14:54:54 +0000 (15:54 +0100)
committerKyle McMartin <kyle@mcmartin.ca>
Thu, 2 Apr 2009 01:05:30 +0000 (01:05 +0000)
Signed-off-by: Geert Uytterhoeven <Geert.Uytterhoeven@sonycom.com>
Acked-by: Alessandro Zummo <a.zummo@towertech.it>
Signed-off-by: Kyle McMartin <kyle@mcmartin.ca>
drivers/rtc/rtc-parisc.c

index b966f56da976e4dec379c56eb6fcc88545883295..620b949e4f3d895757374c33f65c11786a651f9b 100644 (file)
@@ -13,9 +13,7 @@
 
 static int parisc_get_time(struct device *dev, struct rtc_time *tm)
 {
-       unsigned long ret;
-
-       ret = get_rtc_time(tm);
+       unsigned int ret = get_rtc_time(tm);
 
        if (ret & RTC_BATT_BAD)
                return -EOPNOTSUPP;