summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/devices.c
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2017-03-14 22:24:48 +0100
committerTony Lindgren <tony@atomide.com>2017-03-28 14:10:09 -0700
commitf0e6876606a54c28c2e03a223d9d51f30718f24a (patch)
treef0e83c2ef6b08f34f6e16c5d646528da43e0ecfe /arch/arm/mach-omap2/devices.c
parent49e9e6163c4e960781840cd5ab65cfa13e8d8acf (diff)
downloadlinux-f0e6876606a54c28c2e03a223d9d51f30718f24a.tar.bz2
ARM: OMAP2+: mark omap_init_rng as __init
I found this section mismatch when building with an older compiler release: WARNING: vmlinux.o(.text+0x3051c): Section mismatch in reference from the function omap_init_rng() to the function .init.text:omap_device_build() Obviously this one function should be __init as well. Normally we don't get a warning as the function gets inlined into its caller. Signed-off-by: Arnd Bergmann <arnd@arndb.de> [tony@atomide.com: formatted error message a bit] Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/mach-omap2/devices.c')
-rw-r--r--arch/arm/mach-omap2/devices.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-omap2/devices.c b/arch/arm/mach-omap2/devices.c
index 3fdb94599184..473951203104 100644
--- a/arch/arm/mach-omap2/devices.c
+++ b/arch/arm/mach-omap2/devices.c
@@ -121,7 +121,7 @@ static inline void omap_init_mcspi(void) {}
*
* Bind the RNG hwmod to the RNG omap_device. No return value.
*/
-static void omap_init_rng(void)
+static void __init omap_init_rng(void)
{
struct omap_hwmod *oh;
struct platform_device *pdev;