diff options
author | Kevin Hilman <khilman@ti.com> | 2012-02-20 09:43:30 -0800 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2012-02-24 13:04:10 -0800 |
commit | 9cf793f9b8b1ba9414e2a7591b2e911885f85a27 (patch) | |
tree | 7ac9494904f303d04d00d6d8cc0aa65e2d77115d /arch/arm/mach-omap2/mcbsp.c | |
parent | d1589f0912533e6cb2ac8fd6f1feb3d5989fe8cb (diff) | |
download | linux-9cf793f9b8b1ba9414e2a7591b2e911885f85a27.tar.bz2 |
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/mcbsp.c')
-rw-r--r-- | arch/arm/mach-omap2/mcbsp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-omap2/mcbsp.c b/arch/arm/mach-omap2/mcbsp.c index fb4bcf81a183..5f8a876e4fd2 100644 --- a/arch/arm/mach-omap2/mcbsp.c +++ b/arch/arm/mach-omap2/mcbsp.c @@ -122,7 +122,7 @@ static int omap3_enable_st_clock(unsigned int id, bool enable) return 0; } -static int omap_init_mcbsp(struct omap_hwmod *oh, void *unused) +static int __init omap_init_mcbsp(struct omap_hwmod *oh, void *unused) { int id, count = 1; char *name = "omap-mcbsp"; |