]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
rtc: sh: provide rtc_class_ops directly
authorArnd Bergmann <arnd@arndb.de>
Mon, 30 May 2016 18:57:52 +0000 (20:57 +0200)
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>
Fri, 3 Jun 2016 22:22:46 +0000 (00:22 +0200)
commitd4db68741d381b04d603bc9e75fe2a8a29097a84
tree031505478885789955f415caa90cfa9a48323958
parent463a86304cae92e10277b47180ac59cf93982e5b
rtc: sh: 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 sh, that goes through another indirection using
the rtc_sh_get_time/rtc_sh_set_time functions.

This changes the sh rtc-generic device to provide its
rtc_class_ops directly, skipping one of the abstraction
levels.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Geert Uytterhoeven <geert@linux-m68k.org>
Acked-by: Rich Felker <dalias@libc.org>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
arch/sh/include/asm/rtc.h
arch/sh/kernel/time.c
drivers/rtc/rtc-generic.c