mips: remove redundant macro mc146818_decode_year
authorMateusz Jończyk <mat.jonczyk@o2.pl>
Sun, 13 Jul 2025 10:04:33 +0000 (12:04 +0200)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Wed, 16 Jul 2025 16:47:08 +0000 (18:47 +0200)
commit6e68ee347555b1b37b42195210b138a105387f01
treeaa6dd52f75b5d708e1fc5087be6b7f30e0924fa8
parent3b3c4f91404659fb21ed5db818a623d274266d2a
mips: remove redundant macro mc146818_decode_year

The mc146818_decode_year macro is used only in mc146818_get_cmos_time(),
which in turn is called only in
arch/mips/loongson2ef/common/time.c
and
arch/mips/mti-malta/malta-time.c
so on mach-jazz it is unused and can be removed. On other platforms it
is defined in the same way, so it can be safely folded into
mc146818_get_cmos_time().

Signed-off-by: Mateusz Jończyk <mat.jonczyk@o2.pl>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
arch/mips/include/asm/mach-generic/mc146818rtc.h
arch/mips/include/asm/mach-jazz/mc146818rtc.h
arch/mips/include/asm/mach-malta/mc146818rtc.h
arch/mips/include/asm/mc146818-time.h