aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorGeert Uytterhoeven <Geert.Uytterhoeven@sonycom.com>2009-03-06 09:54:54 -0500
committerKyle McMartin <kyle@mcmartin.ca>2009-04-01 21:05:30 -0400
commit55457161fdbdb5fe9eeb5027e720462a3fbdcb57 (patch)
treec3092717fc4ddb4628acd66ab019bb1921863751 /drivers
parent833bb3046b6cb320e775ea2160ddca87d53260d5 (diff)
parisc: rtc: get_rtc_time() returns unsigned int
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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/rtc/rtc-parisc.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/rtc/rtc-parisc.c b/drivers/rtc/rtc-parisc.c
index b966f56da976..620b949e4f3d 100644
--- a/drivers/rtc/rtc-parisc.c
+++ b/drivers/rtc/rtc-parisc.c
@@ -13,9 +13,7 @@
13 13
14static int parisc_get_time(struct device *dev, struct rtc_time *tm) 14static int parisc_get_time(struct device *dev, struct rtc_time *tm)
15{ 15{
16 unsigned long ret; 16 unsigned int ret = get_rtc_time(tm);
17
18 ret = get_rtc_time(tm);
19 17
20 if (ret & RTC_BATT_BAD) 18 if (ret & RTC_BATT_BAD)
21 return -EOPNOTSUPP; 19 return -EOPNOTSUPP;