Skip to contentSkip to conversation

ARM: OMAP2+: remove omap2_set_globals_control()

PATCH RESEND In review Dario Binacchi 2 participants 2 messages Apr 25, 2021 – May 21, 2021

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH RESEND 1/1 ARM: OMAP2+: remove omap2_set_globals_control()

The function is no longer used, so let's remove it.

---

 arch/arm/mach-omap2/control.c | 5 -----
 arch/arm/mach-omap2/control.h | 1 -
 2 files changed, 6 deletions(-)
arch/arm/mach-omap2/control.c +0 -5
index 73338cf80d76..062d431fc33a 100644
@@ -136,11 +136,6 @@ struct omap3_control_regs {
 static struct omap3_control_regs control_context;
 #endif /* CONFIG_ARCH_OMAP3 && CONFIG_PM */
 
-void __init omap2_set_globals_control(void __iomem *ctrl)
-{
-	omap2_ctrl_base = ctrl;
-}
-
 u8 omap_ctrl_readb(u16 offset)
 {
 	u32 val;
arch/arm/mach-omap2/control.h +0 -1
index eceb4b09adb2..c4ca30ba1790 100644
@@ -528,7 +528,6 @@ extern int omap3_ctrl_save_padconf(void);
 void omap3_ctrl_init(void);
 int omap2_control_base_init(void);
 int omap_control_init(void);
-void omap2_set_globals_control(void __iomem *ctrl);
 void __init omap3_control_legacy_iomap_init(void);
 #else
 #define omap_ctrl_readb(x)		0
Signature · 1 line
2.17.1
maintainer
#1 lore raw
Quoted 1 line · Dario Binacchi

The function is no longer used, so let's remove it.

Thanks applying into omap-for-v5.14/cleanup.

Tony