diff options
Diffstat (limited to 'drivers/rtc/rtc-parisc.c')
-rw-r--r-- | drivers/rtc/rtc-parisc.c | 4 |
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 | ||
14 | static int parisc_get_time(struct device *dev, struct rtc_time *tm) | 14 | static 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; |