diff options
author | Kevin Hilman <khilman@ti.com> | 2012-02-20 18:43:30 +0100 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2012-02-24 22:04:10 +0100 |
commit | 9cf793f9b8b1ba9414e2a7591b2e911885f85a27 (patch) | |
tree | 7ac9494904f303d04d00d6d8cc0aa65e2d77115d /arch/arm/mach-omap2/sr_device.c | |
parent | ARM: OMAP2+: Mark omap_hsmmc_init and omap_mux related functions as __init (diff) | |
download | linux-9cf793f9b8b1ba9414e2a7591b2e911885f85a27.tar.xz linux-9cf793f9b8b1ba9414e2a7591b2e911885f85a27.zip |
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/sr_device.c')
-rw-r--r-- | arch/arm/mach-omap2/sr_device.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-omap2/sr_device.c b/arch/arm/mach-omap2/sr_device.c index 9f43fcc05d3e..78c9437913ce 100644 --- a/arch/arm/mach-omap2/sr_device.c +++ b/arch/arm/mach-omap2/sr_device.c @@ -69,7 +69,7 @@ static void __init sr_set_nvalues(struct omap_volt_data *volt_data, sr_data->nvalue_count = count; } -static int sr_dev_init(struct omap_hwmod *oh, void *user) +static int __init sr_dev_init(struct omap_hwmod *oh, void *user) { struct omap_sr_data *sr_data; struct platform_device *pdev; |