]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit - arch/m68k/mac/misc.c
macintosh: Use common code to access RTC
authorFinn Thain <fthain@telegraphics.com.au>
Wed, 12 Sep 2018 00:18:44 +0000 (20:18 -0400)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 8 Oct 2018 11:53:10 +0000 (22:53 +1100)
commit0792a2c8e0bbda3605b8d42c6b9635be7b19982a
treeba1ddd80dac3a672746caa2447a217cec910cbee
parent053c5a753e951c5dd1729af2cf4d8107f2e6e09b
macintosh: Use common code to access RTC

Now that the 68k Mac port has adopted the via-pmu driver, the same RTC
code can be shared between m68k and powerpc. Replace duplicated code in
arch/powerpc and arch/m68k with common RTC accessors for Cuda and PMU.

Drop the problematic WARN_ON which was introduced in commit 22db552b50fa
("powerpc/powermac: Fix rtc read/write functions").

Tested-by: Stan Johnson <userm57@yahoo.com>
Signed-off-by: Finn Thain <fthain@telegraphics.com.au>
Cc: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: Arnd Bergmann <arnd@arndb.de>
Acked-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/m68k/mac/misc.c
arch/powerpc/platforms/powermac/time.c
drivers/macintosh/via-cuda.c
drivers/macintosh/via-pmu.c
include/linux/cuda.h
include/linux/pmu.h