ARM: shmobile: R-Car Gen2: CONFIG_COMMON_CLK is always set
Geert Uytterhoeven
maintainerPATCH 1/1 ARM: shmobile: R-Car Gen2: CONFIG_COMMON_CLK is always set
Since commit e042681894b62d60 ("ARM: shmobile: r8a7790: Remove legacy code"), all R-Car Gen2 SoCs are supported by multiplatform kernels only. As CONFIG_COMMON_CLK is always set for multiplatform kernels, we can remove related #ifdefs in code specific to R-Car Gen2 SoCs.
---
Depends on renesas-lager-board-removal-for-v3.20
--- arch/arm/mach-shmobile/setup-rcar-gen2.c | 4 ---- 1 file changed, 4 deletions(-)
arch/arm/mach-shmobile/setup-rcar-gen2.c +0 -4
@@ -51,9 +51,7 @@ u32 rcar_gen2_read_mode_pins(void)void __init rcar_gen2_timer_init (void ) { -#if defined(CONFIG_ARM_ARCH_TIMER ) || defined(CONFIG_COMMON_CLK )u32 mode =rcar_gen2_read_mode_pins (); -#endif #ifdef CONFIG_ARM_ARCH_TIMER void __iomem *base;int extal_mhz =0 ;
@@ -129,9 +127,7 @@ void __init rcar_gen2_timer_init(void)iounmap (base);#endif /* CONFIG_ARM_ARCH_TIMER */ -#ifdef CONFIG_COMMON_CLK rcar_gen2_clocks_init (mode); -#endif clocksource_of_init (); }
Signature · 1 line
1.9.1
PATCH 1/1 ARM: shmobile: R-Car Gen2: CONFIG_COMMON_CLK is always set
Hello.
Quoted 17 lines · Geert Uytterhoeven
Since commit
e042681894b62d60("ARM: shmobile: r8a7790: Remove legacy code"), all R-Car Gen2 SoCs are supported by multiplatform kernels only. AsCONFIG_COMMON_CLKis always set for multiplatform kernels, we can remove related #ifdefs in code specific to R-Car Gen2 SoCs.Signed-off-by Geert Uytterhoeven <[email protected]>---
Depends on renesas-lager-board-removal-for-v3.20--- arch/arm/mach-shmobile/setup-rcar-gen2.c | 4 ---- 1 file changed, 4 deletions(-)arch/arm/mach-shmobile/setup-rcar-gen2.c +0
-0
arch/arm/mach-shmobile/setup-rcar-gen2.c u32 rcar_gen2_read_mode_pins(void) · line 54
Quoted 4 lines
arch/arm/mach-shmobile/setup-rcar-gen2.c +0
-1@@ -51,9 +51,7 @@ u32 rcar_gen2_read_mode_pins(void)void __init rcar_gen2_timer_init (void ) { -#if defined(CONFIG_ARM_ARCH_TIMER ) || defined(CONFIG_COMMON_CLK )
Is CONFIG_ARM_ARCH_TIMER always defined too? I guess not...
arch/arm/mach-shmobile/setup-rcar-gen2.c u32 rcar_gen2_read_mode_pins(void) · line 55
Quoted 3 lines
arch/arm/mach-shmobile/setup-rcar-gen2.c +0
-1u32 mode =rcar_gen2_read_mode_pins (); -#endif #ifdef CONFIG_ARM_ARCH_TIMER
... or you would have removed this as well?
arch/arm/mach-shmobile/setup-rcar-gen2.c u32 rcar_gen2_read_mode_pins(void) · line 57
Quoted 2 lines
arch/arm/mach-shmobile/setup-rcar-gen2.c +0
-0void __iomem *base;int extal_mhz =0 ;
[...]
WBR, Sergei
PATCH 1/1 ARM: shmobile: R-Car Gen2: CONFIG_COMMON_CLK is always set
Quoted 7 lines · Sergei Shtylyov
Quoted 7 lines
arch/arm/mach-shmobile/setup-rcar-gen2.c +0
-0@@ -51,9 +51,7 @@ u32 rcar_gen2_read_mode_pins(void)
Quoted 6 lines
arch/arm/mach-shmobile/setup-rcar-gen2.c u32 rcar_gen2_read_mode_pins(void) · line 54
Quoted 3 lines
arch/arm/mach-shmobile/setup-rcar-gen2.c +0
-1void __init rcar_gen2_timer_init (void ) { -#if defined(CONFIG_ARM_ARCH_TIMER ) || defined(CONFIG_COMMON_CLK )Is
CONFIG_ARM_ARCH_TIMERalways defined too? I guess not...
Nope...
("x || true" == "true")
Quoted 6 lines
arch/arm/mach-shmobile/setup-rcar-gen2.c u32 rcar_gen2_read_mode_pins(void) · line 55
Quoted 3 lines
arch/arm/mach-shmobile/setup-rcar-gen2.c +0
-1u32 mode =rcar_gen2_read_mode_pins (); -#endif #ifdef CONFIG_ARM_ARCH_TIMER ... or you would have removed this as well?
... and if it would, that could have been a separate change ;-)
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert at linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
PATCH 1/1 ARM: shmobile: R-Car Gen2: CONFIG_COMMON_CLK is always set
In reply to Geert UytterhoevenQuoted 8 lines · Geert Uytterhoeven
Since commit
e042681894b62d60("ARM: shmobile: r8a7790: Remove legacy code"), all R-Car Gen2 SoCs are supported by multiplatform kernels only. AsCONFIG_COMMON_CLKis always set for multiplatform kernels, we can remove related #ifdefs in code specific to R-Car Gen2 SoCs.Signed-off-by Geert Uytterhoeven <[email protected]>---
Depends on renesas-lager-board-removal-for-v3.20
Thanks, I have queued this up in the soc-for-v3.21 branch.
Quoted 31 lines
--- arch/arm/mach-shmobile/setup-rcar-gen2.c | 4 ---- 1 file changed, 4 deletions(-)arch/arm/mach-shmobile/setup-rcar-gen2.c +0
-4@@ -51,9 +51,7 @@ u32 rcar_gen2_read_mode_pins(void)void __init rcar_gen2_timer_init (void ) { -#if defined(CONFIG_ARM_ARCH_TIMER ) || defined(CONFIG_COMMON_CLK )u32 mode =rcar_gen2_read_mode_pins (); -#endif #ifdef CONFIG_ARM_ARCH_TIMER void __iomem *base;int extal_mhz =0 ;@@ -129,9 +127,7 @@ void __init rcar_gen2_timer_init(void)iounmap (base);#endif /* CONFIG_ARM_ARCH_TIMER */ -#ifdef CONFIG_COMMON_CLK rcar_gen2_clocks_init (mode); -#endif clocksource_of_init (); }Signature · 1 line
1.9.1