ARM: OMAP2+: remove omap2_set_globals_control()
authorDario Binacchi <dariobin@libero.it>
Sun, 25 Apr 2021 14:23:30 +0000 (16:23 +0200)
committerTony Lindgren <tony@atomide.com>
Fri, 21 May 2021 09:28:47 +0000 (12:28 +0300)
The function is no longer used, so let's remove it.

Signed-off-by: Dario Binacchi <dariobin@libero.it>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/control.c
arch/arm/mach-omap2/control.h

index 73338cf80d76ca66813931bbdadf32eabb186aa7..062d431fc33a8792a9b53a1136c774eb1358c7db 100644 (file)
@@ -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;
index eceb4b09adb2f0c28b09607a3d59a305f6d14ee9..c4ca30ba1790653d0b0e3e078c1662d5dad4850d 100644 (file)
@@ -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