From b53cb09f54a95069b6b7343c15857138fc17dba1 Mon Sep 17 00:00:00 2001 From: David Brownell Date: Fri, 23 Nov 2007 23:20:05 -0800 Subject: [PATCH] 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 --- arch/arm/plat-omap/i2c.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) { -- 2.41.1