]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd719e4f7bec7c72add6e6975b82f02a2d9a017c4
treec3a5e2e01e9c5237a60e94bc0db9ff4781693da2
parentf2bf766808c675aee8e44c7dd3c4a63ab2681089
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