Skip to content

Commit 2046390

Browse files
kelvincheungtsbogend
authored andcommitted
MIPS: loongson32: Remove regs-rtc.h
Since commit 35508d2 ("MIPS: loongson32: ls1c: Fix hang during startup"), no one is calling ls1x_rtc_set_extclk(). Therefore, remove this obsolete function. Since commit 9fb2309 ("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>
1 parent ef8365d commit 2046390

3 files changed

Lines changed: 0 additions & 28 deletions

File tree

arch/mips/include/asm/mach-loongson32/loongson1.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,5 @@
4646
#define LS1X_CLK_BASE 0x1fe78030
4747

4848
#include <regs-mux.h>
49-
#include <regs-rtc.h>
5049

5150
#endif /* __ASM_MACH_LOONGSON32_LOONGSON1_H */

arch/mips/include/asm/mach-loongson32/regs-rtc.h

Lines changed: 0 additions & 19 deletions
This file was deleted.

arch/mips/loongson32/common/platform.c

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -265,14 +265,6 @@ struct platform_device ls1x_ehci_pdev = {
265265
};
266266

267267
/* Real Time Clock */
268-
void __init ls1x_rtc_set_extclk(struct platform_device *pdev)
269-
{
270-
u32 val = __raw_readl(LS1X_RTC_CTRL);
271-
272-
if (!(val & RTC_EXTCLK_OK))
273-
__raw_writel(val | RTC_EXTCLK_EN, LS1X_RTC_CTRL);
274-
}
275-
276268
struct platform_device ls1x_rtc_pdev = {
277269
.name = "ls1x-rtc",
278270
.id = -1,

0 commit comments

Comments
 (0)