diff mbox series

ARM: OMAP2+: pm33xx-core: make am43xx_get_rtc_base_addr static

Message ID 20191009134137.28852-1-ben.dooks@codethink.co.uk (mailing list archive)
State Mainlined
Commit d33e3d542b6c09a5cb4fa51d82109b2ca92e89c2
Headers show
Series ARM: OMAP2+: pm33xx-core: make am43xx_get_rtc_base_addr static | expand

Commit Message

Ben Dooks Oct. 9, 2019, 1:41 p.m. UTC
Make am43xx_get_rtc_base_addr as is not used outside of
this file. Fixes the following sparse warning:

arch/arm/mach-omap2/pm33xx-core.c:190:14: warning: symbol 'am43xx_get_rtc_base_addr' was not declared. Should it be static?

Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk>
---
Cc: Kevin Hilman <khilman@kernel.org>
Cc: Tony Lindgren <tony@atomide.com>
Cc: linux-omap@vger.kernel.org
Cc: linux-arm-kernel@lists.infradead.org
---
 arch/arm/mach-omap2/pm33xx-core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/arch/arm/mach-omap2/pm33xx-core.c b/arch/arm/mach-omap2/pm33xx-core.c
index f11442ed3eff..05ad017796f8 100644
--- a/arch/arm/mach-omap2/pm33xx-core.c
+++ b/arch/arm/mach-omap2/pm33xx-core.c
@@ -187,7 +187,7 @@  static struct am33xx_pm_sram_addr *amx3_get_sram_addrs(void)
 		return NULL;
 }
 
-void __iomem *am43xx_get_rtc_base_addr(void)
+static void __iomem *am43xx_get_rtc_base_addr(void)
 {
 	rtc_oh = omap_hwmod_lookup("rtc");