aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/pm.c
diff options
context:
space:
mode:
authorKevin Hilman <khilman@ti.com>2012-02-20 12:43:30 -0500
committerTony Lindgren <tony@atomide.com>2012-02-24 16:04:10 -0500
commit9cf793f9b8b1ba9414e2a7591b2e911885f85a27 (patch)
tree7ac9494904f303d04d00d6d8cc0aa65e2d77115d /arch/arm/mach-omap2/pm.c
parentd1589f0912533e6cb2ac8fd6f1feb3d5989fe8cb (diff)
ARM: OMAP: convert omap_device_build() and callers to __init
Building omap_devices should only be done at init time, and since omap_device_build() is using early_platform calls which are also __init, this ensures that omap_device isn't trying to use functions that disappear. 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 1881fe91514..fb9b85bfc30 100644
--- a/arch/arm/mach-omap2/pm.c
+++ b/arch/arm/mach-omap2/pm.c
@@ -28,7 +28,7 @@
28 28
29static struct omap_device_pm_latency *pm_lats; 29static struct omap_device_pm_latency *pm_lats;
30 30
31static int _init_omap_device(char *name) 31static int __init _init_omap_device(char *name)
32{ 32{
33 struct omap_hwmod *oh; 33 struct omap_hwmod *oh;
34 struct platform_device *pdev; 34 struct platform_device *pdev;