MIPS: loongson32: Remove obsolete header files
Subsystems (2)
Keguang Zhang
maintainerv2 cover MIPS: loongson32: Remove obsolete header files
No one is using regs-clk.h and regs-rtc.h.
Therefore, remove these obsolete header files.
Changelog
V1 -> V2: fix the build error of "‘LS1X_RTC_CTRL’ undeclared"
Keguang Zhang (2):
MIPS: loongson32: Remove regs-clk.h
MIPS: loongson32: Remove regs-rtc.h
.../include/asm/mach-loongson32/loongson1.h | 2 - .../include/asm/mach-loongson32/regs-clk.h | 81 ------------------- .../include/asm/mach-loongson32/regs-rtc.h | 19 ----- arch/mips/loongson32/common/platform.c | 8 -- 4 files changed, 110 deletions(-) delete mode 100644 arch/mips/include/asm/mach-loongson32/regs-clk.h delete mode 100644 arch/mips/include/asm/mach-loongson32/regs-rtc.h
base-commit: 0859bdf1ace659e8981a82956920573c1f8203da
Signature · 1 line
2.39.2
Keguang Zhang
maintainerPATCH v2 1/2 MIPS: loongson32: Remove regs-clk.h
Since commit c46496119ed0 ("clk: loongson1: Remove the outdated driver"), no one is using regs-clk.h. Therefore, remove this obsolete header file.
---
V1 -> V2: None
.../include/asm/mach-loongson32/loongson1.h | 1 - .../include/asm/mach-loongson32/regs-clk.h | 81 ------------------- 2 files changed, 82 deletions(-) delete mode 100644 arch/mips/include/asm/mach-loongson32/regs-clk.h
arch/mips/include/asm/mach-loongson32/loongson1.h +0 -1
@@ -45,7 +45,6 @@#define LS1X_NAND_BASE 0x1fe78000#define LS1X_CLK_BASE 0x1fe78030 -#include <regs-clk.h> #include <regs-mux.h> #include <regs-rtc.h>
arch/mips/include/asm/mach-loongson32/regs-clk.h deleted +0 -81
81 lines not on this page · raw message
Signature · 1 line
2.39.2
Keguang Zhang
maintainerPATCH v2 2/2 MIPS: loongson32: Remove regs-rtc.h
In reply to Keguang ZhangSince 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.
---
V1 -> V2: fix the build error of "‘LS1X_RTC_CTRL’ undeclared"
.../include/asm/mach-loongson32/loongson1.h | 1 - .../include/asm/mach-loongson32/regs-rtc.h | 19 ------------------- arch/mips/loongson32/common/platform.c | 8 -------- 3 files changed, 28 deletions(-) delete mode 100644 arch/mips/include/asm/mach-loongson32/regs-rtc.h
arch/mips/include/asm/mach-loongson32/loongson1.h +0 -1
@@ -46,6 +46,5 @@#define LS1X_CLK_BASE 0x1fe78030#include <regs-mux.h> -#include <regs-rtc.h> #endif /* __ASM_MACH_LOONGSON32_LOONGSON1_H */
arch/mips/include/asm/mach-loongson32/regs-rtc.h deleted +0 -19
@@ -1,19 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0-or-later */ -/* -* Copyright (c) 2016 Yang Ling <[email protected]> -* -* Loongson 1 RTC timer Register Definitions. -*/ - -#ifndef __ASM_MACH_LOONGSON32_REGS_RTC_H -#define __ASM_MACH_LOONGSON32_REGS_RTC_H - -#define LS1X_RTC_REG (x) \ - ((void __iomem *)KSEG1ADDR(LS1X_RTC_BASE + (x))) - -#define LS1X_RTC_CTRL LS1X_RTC_REG(0x40) - -#define RTC_EXTCLK_OK (BIT(5) | BIT(8)) -#define RTC_EXTCLK_EN BIT(8) - -#endif /* __ASM_MACH_LOONGSON32_REGS_RTC_H */
arch/mips/loongson32/common/platform.c +0 -8
@@ -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 ,
Signature · 1 line
2.39.2
Thomas Bogendoerfer
maintainerQuoted 10 lines · Keguang Zhang
No one is using
regs-clk.handregs-rtc.h.
Therefore, remove these obsolete header files.Changelog
V1 -> V2: fix the build error of "‘LS1X_RTC_CTRL’ undeclared"Keguang Zhang (2):
MIPS: loongson32: Removeregs-clk.h
MIPS: loongson32: Removeregs-rtc.h
Quoted 7 lines
.../include/asm/mach-loongson32/loongson1.h | 2 - .../include/asm/mach-loongson32/regs-clk.h | 81 ------------------- .../include/asm/mach-loongson32/regs-rtc.h | 19 ----- arch/mips/loongson32/common/platform.c | 8 -- 4 files changed, 110 deletions(-) delete mode 100644 arch/mips/include/asm/mach-loongson32/regs-clk.h delete mode 100644 arch/mips/include/asm/mach-loongson32/regs-rtc.h
series applied to mips-next.
Thomas.
Signature · 2 lines
Crap can work. Given enough thrust pigs will fly, but it's not necessarily a good idea. [ RFC1925, 2.3 ]