diff options
author | Arnd Bergmann <arnd@arndb.de> | 2016-05-30 14:57:55 -0400 |
---|---|---|
committer | Alexandre Belloni <alexandre.belloni@free-electrons.com> | 2016-06-03 18:23:04 -0400 |
commit | ca6da801878635bfb851088e1a4eaa3745720582 (patch) | |
tree | c3a5e2e01e9c5237a60e94bc0db9ff4781693da2 /drivers/rtc | |
parent | 7ee942179fd8d485cedaf1875f81c5ee7a3ebeae (diff) |
rtc: parisc: provide rtc_class_ops directly
The rtc-generic driver provides an architecture specific
wrapper on top of the generic rtc_class_ops abstraction,
and on pa-risc, that is implemented using an open-coded
version of rtc_time_to_tm/rtc_tm_to_time.
This changes the parisc rtc-generic device to provide its
rtc_class_ops directly, using the normal helper functions,
which makes this y2038 safe (on 32-bit) and simplifies
the implementation.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Diffstat (limited to 'drivers/rtc')
-rw-r--r-- | drivers/rtc/rtc-generic.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/rtc/rtc-generic.c b/drivers/rtc/rtc-generic.c index 3958e87a05fa..92b5e02a3750 100644 --- a/drivers/rtc/rtc-generic.c +++ b/drivers/rtc/rtc-generic.c | |||
@@ -9,8 +9,7 @@ | |||
9 | #include <linux/platform_device.h> | 9 | #include <linux/platform_device.h> |
10 | #include <linux/rtc.h> | 10 | #include <linux/rtc.h> |
11 | 11 | ||
12 | #if defined(CONFIG_M68K) || defined(CONFIG_PARISC) || \ | 12 | #if defined(CONFIG_M68K) || defined(CONFIG_PPC) |
13 | defined(CONFIG_PPC) | ||
14 | #include <asm/rtc.h> | 13 | #include <asm/rtc.h> |
15 | 14 | ||
16 | static int generic_get_time(struct device *dev, struct rtc_time *tm) | 15 | static int generic_get_time(struct device *dev, struct rtc_time *tm) |