mirror of
https://gitee.com/open-loongarch/linux-6.12.git
synced 2026-10-25 20:47:11 +08:00
mips/mach-rm: remove custom mc146818rtc.h file
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 no SNI or mach-rm content. SNI did not use mc146818_get_cmos_time
apparently since
commit 06cf5583fd9a ("[MIPS] SNI RM updates")
in 2007.
Signed-off-by: Mateusz Jończyk <mat.jonczyk@o2.pl>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Signed-off-by: maoxiaochuan <maoxiaochuan@loongson.cn>
This commit is contained in:
committed by
maoxiaochuan
parent
b5440a58f3
commit
5a512f70fe
@@ -1,21 +0,0 @@
|
||||
/*
|
||||
* This file is subject to the terms and conditions of the GNU General Public
|
||||
* License. See the file "COPYING" in the main directory of this archive
|
||||
* for more details.
|
||||
*
|
||||
* Copyright (C) 2004 by Ralf Baechle
|
||||
*
|
||||
* RTC routines for PC style attached Dallas chip with ARC epoch.
|
||||
*/
|
||||
#ifndef __ASM_MACH_RM_MC146818RTC_H
|
||||
#define __ASM_MACH_RM_MC146818RTC_H
|
||||
|
||||
#ifdef CONFIG_CPU_BIG_ENDIAN
|
||||
#define mc146818_decode_year(year) ((year) < 70 ? (year) + 2000 : (year) + 1900)
|
||||
#else
|
||||
#define mc146818_decode_year(year) ((year) + 1980)
|
||||
#endif
|
||||
|
||||
#include <asm/mach-generic/mc146818rtc.h>
|
||||
|
||||
#endif /* __ASM_MACH_RM_MC146818RTC_H */
|
||||
Reference in New Issue
Block a user