rtc: parisc: provide rtc_class_ops directly
authorArnd Bergmann <arnd@arndb.de>
Mon, 30 May 2016 18:57:55 +0000 (20:57 +0200)
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>
Fri, 3 Jun 2016 22:23:04 +0000 (00:23 +0200)
commitca6da801878635bfb851088e1a4eaa3745720582
treec3a5e2e01e9c5237a60e94bc0db9ff4781693da2
parent7ee942179fd8d485cedaf1875f81c5ee7a3ebeae
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>
arch/parisc/kernel/time.c
drivers/rtc/rtc-generic.c