From: David Brownell Date: Sat, 24 Nov 2007 07:20:05 +0000 (-0800) Subject: i2c init section fixes X-Git-Tag: v2.6.24-omap1~146 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=b53cb09f54a95069b6b7343c15857138fc17dba1;p=linux-2.6-omap-h63xx.git 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: David Brownell Acked-by: Jarkko Nikula Signed-off-by: Tony Lindgren --- diff --git a/arch/arm/plat-omap/i2c.c b/arch/arm/plat-omap/i2c.c index 237a168963c..7990ab185bb 100644 --- a/arch/arm/plat-omap/i2c.c +++ b/arch/arm/plat-omap/i2c.c @@ -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) {