]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
i2c init section fixes
authorDavid Brownell <david-b@pacbell.net>
Sat, 24 Nov 2007 07:20:05 +0000 (23:20 -0800)
committerTony Lindgren <tony@atomide.com>
Wed, 28 Nov 2007 20:48:33 +0000 (12:48 -0800)
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 <dbrownell@users.sourceforge.net>
Acked-by: Jarkko Nikula <jarkko.nikula@nokia.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/plat-omap/i2c.c

index 237a168963c0fc11b6898529605ac2e759455274..7990ab185bb1f7eeed556e0d533ed7429551323b 100644 (file)
@@ -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)
 {