summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/pm.c
diff options
context:
space:
mode:
authorKevin Hilman <khilman@ti.com>2012-03-06 11:38:01 -0800
committerTony Lindgren <tony@atomide.com>2012-03-06 11:56:41 -0800
commit1f3b372b3c1018fad960015cbfdf8de9251d14db (patch)
treeb8294356fe0bce5f4beed6e7b2f59ab167a4af59 /arch/arm/mach-omap2/pm.c
parent49b87c6db100cf9802be22a1b83a72cbcadaa76c (diff)
downloadblackbird-obmc-linux-1f3b372b3c1018fad960015cbfdf8de9251d14db.tar.gz
blackbird-obmc-linux-1f3b372b3c1018fad960015cbfdf8de9251d14db.zip
ARM: OMAP2+: PM: fix section mismatch with omap2_init_processor_devices()
Fix the below warning by making omap2_init_processor_devices() __init. It is called by an __init function and calls only __init functions, so it should also be init. WARNING: arch/arm/mach-omap2/built-in.o(.text+0x183c): Section mismatch in reference from the function omap2_init_processor_devices() to the function .init.text:_init_omap_device() The function omap2_init_processor_devices() references the function __init _init_omap_device(). This is often because omap2_init_processor_devices lacks a __init annotation or the annotation of _init_omap_device is wrong. Reported-by: Russell King <rmk+kernel@arm.linux.org.uk> Signed-off-by: Kevin Hilman <khilman@ti.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/mach-omap2/pm.c')
-rw-r--r--arch/arm/mach-omap2/pm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-omap2/pm.c b/arch/arm/mach-omap2/pm.c
index 1881fe915149..d00c39eefb1e 100644
--- a/arch/arm/mach-omap2/pm.c
+++ b/arch/arm/mach-omap2/pm.c
@@ -49,7 +49,7 @@ static int _init_omap_device(char *name)
/*
* Build omap_devices for processors and bus.
*/
-static void omap2_init_processor_devices(void)
+static void __init omap2_init_processor_devices(void)
{
_init_omap_device("mpu");
if (omap3_has_iva())
OpenPOWER on IntegriCloud