diff options
author | Tony Lindgren <tony@atomide.com> | 2013-01-11 20:24:19 +0100 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2013-01-11 20:24:19 +0100 |
commit | a6cf912c6047077a6eb860ed8dbfa342376ee395 (patch) | |
tree | 23054ab4c83865400ffde599dd0bb3dd34664fe6 /arch/arm/plat-omap/i2c.c | |
parent | ARM: OMAP2+: Use omap initcalls (diff) | |
download | linux-a6cf912c6047077a6eb860ed8dbfa342376ee395.tar.xz linux-a6cf912c6047077a6eb860ed8dbfa342376ee395.zip |
ARM: OMAP: Fix i2c cmdline initcall for multiplatform
We only want this initcall to run when the kernel is
booted on omap SoCs. Fix the issue by initializing the
the initcall from separately for omap1 and omap2+.
This fixes the issue for omap2+ multiplatform configs
as we are using omap_subsys_initcall there.
Tested-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/plat-omap/i2c.c')
-rw-r--r-- | arch/arm/plat-omap/i2c.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/arm/plat-omap/i2c.c b/arch/arm/plat-omap/i2c.c index f9df624d108c..58213d9714cd 100644 --- a/arch/arm/plat-omap/i2c.c +++ b/arch/arm/plat-omap/i2c.c @@ -68,7 +68,7 @@ __setup("i2c_bus=", omap_i2c_bus_setup); * Register busses defined in command line but that are not registered with * omap_register_i2c_bus from board initialization code. */ -static int __init omap_register_i2c_bus_cmdline(void) +int __init omap_register_i2c_bus_cmdline(void) { int i, err = 0; @@ -83,7 +83,6 @@ static int __init omap_register_i2c_bus_cmdline(void) out: return err; } -subsys_initcall(omap_register_i2c_bus_cmdline); /** * omap_register_i2c_bus - register I2C bus with device descriptors |