Commit b53cb09f authored by David Brownell's avatar David Brownell Committed by Tony Lindgren

i2c init section fixes

Fix init section warnings in the new i2c init code.  It's
wrong to call "__init" functions from non-__init ones.
Signed-off-by: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
Acked-by: default avatarJarkko Nikula <jarkko.nikula@nokia.com>
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent 5192040b
......@@ -80,7 +80,7 @@ static struct platform_device omap_i2c_devices[] = {
#endif
};
static void omap_i2c_mux_pins(int bus_id)
static void __init omap_i2c_mux_pins(int bus_id)
{
/* TODO: Muxing for OMAP3 */
switch (bus_id) {
......@@ -102,7 +102,7 @@ static void omap_i2c_mux_pins(int bus_id)
}
}
int omap_register_i2c_bus(int bus_id, u32 clkrate,
int __init omap_register_i2c_bus(int bus_id, u32 clkrate,
struct i2c_board_info const *info,
unsigned len)
{
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment