diff options
author | Keguang Zhang <keguang.zhang@gmail.com> | 2023-07-26 20:51:31 +0800 |
---|---|---|
committer | Thomas Bogendoerfer <tsbogend@alpha.franken.de> | 2023-07-28 11:42:16 +0200 |
commit | 20463908951be777b3300c1a3a845877266f8fee (patch) | |
tree | fca51ee47db380b051472daa9c3f01e79e64a391 /arch/mips/loongson32/common/platform.c | |
parent | ef8365dfaa53c11722904dd590154f981d735754 (diff) | |
download | lwn-20463908951be777b3300c1a3a845877266f8fee.tar.gz lwn-20463908951be777b3300c1a3a845877266f8fee.zip |
MIPS: loongson32: Remove regs-rtc.h
Since commit 35508d242409 ("MIPS: loongson32: ls1c: Fix hang
during startup"), no one is calling ls1x_rtc_set_extclk().
Therefore, remove this obsolete function.
Since commit 9fb23090658a ("rtc: Remove the Loongson-1
RTC driver"), no one is using regs-rtc.h.
Therefore, remove this obsolete header file.
Signed-off-by: Keguang Zhang <keguang.zhang@gmail.com>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Diffstat (limited to 'arch/mips/loongson32/common/platform.c')
-rw-r--r-- | arch/mips/loongson32/common/platform.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/arch/mips/loongson32/common/platform.c b/arch/mips/loongson32/common/platform.c index 64d7979394e6..8075590a9f83 100644 --- a/arch/mips/loongson32/common/platform.c +++ b/arch/mips/loongson32/common/platform.c @@ -265,14 +265,6 @@ struct platform_device ls1x_ehci_pdev = { }; /* Real Time Clock */ -void __init ls1x_rtc_set_extclk(struct platform_device *pdev) -{ - u32 val = __raw_readl(LS1X_RTC_CTRL); - - if (!(val & RTC_EXTCLK_OK)) - __raw_writel(val | RTC_EXTCLK_EN, LS1X_RTC_CTRL); -} - struct platform_device ls1x_rtc_pdev = { .name = "ls1x-rtc", .id = -1, |