public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
* [patch 2.6.24-rc3-omap1] i2c init section fixes
@ 2007-11-24  7:20 David Brownell
  2007-11-26  8:54 ` Jarkko Nikula
  0 siblings, 1 reply; 3+ messages in thread
From: David Brownell @ 2007-11-24  7:20 UTC (permalink / raw)
  To: linux-omap-open-source

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>

--- a/arch/arm/plat-omap/i2c.c
+++ b/arch/arm/plat-omap/i2c.c
@@ -80,7 +80,7 @@ #if	defined(CONFIG_ARCH_OMAP34XX)
 #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)
 {

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-11-28 20:48 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-24  7:20 [patch 2.6.24-rc3-omap1] i2c init section fixes David Brownell
2007-11-26  8:54 ` Jarkko Nikula
2007-11-28 20:48   ` Tony Lindgren

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox