aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/gpio.c
diff options
context:
space:
mode:
authorKevin Hilman <khilman@ti.com>2012-02-20 09:43:30 -0800
committerTony Lindgren <tony@atomide.com>2012-02-24 13:04:10 -0800
commit9cf793f9b8b1ba9414e2a7591b2e911885f85a27 (patch)
tree7ac9494904f303d04d00d6d8cc0aa65e2d77115d /arch/arm/mach-omap2/gpio.c
parentARM: OMAP2+: Mark omap_hsmmc_init and omap_mux related functions as __init (diff)
downloadlinux-dev-9cf793f9b8b1ba9414e2a7591b2e911885f85a27.tar.xz
linux-dev-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/gpio.c')
-rw-r--r--arch/arm/mach-omap2/gpio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-omap2/gpio.c b/arch/arm/mach-omap2/gpio.c
index 8cbfbc2918ce..64c0caed9516 100644
--- a/arch/arm/mach-omap2/gpio.c
+++ b/arch/arm/mach-omap2/gpio.c
@@ -24,7 +24,7 @@
#include <plat/omap_hwmod.h>
#include <plat/omap_device.h>
-static int omap2_gpio_dev_init(struct omap_hwmod *oh, void *unused)
+static int __init omap2_gpio_dev_init(struct omap_hwmod *oh, void *unused)
{
struct platform_device *pdev;
struct omap_gpio_platform_data *pdata;