* [PATCH] ARM: OMAP: Fix compiler error when I2C_OMAP is not set
@ 2007-11-16 0:36 Kyungmin Park
2007-11-16 9:01 ` Jarkko Nikula
0 siblings, 1 reply; 3+ messages in thread
From: Kyungmin Park @ 2007-11-16 0:36 UTC (permalink / raw)
To: tony; +Cc: linux-omap-open-source
Fix compiler error when I2C_OMAP is not set
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
---
diff --git a/include/asm-arm/arch-omap/common.h b/include/asm-arm/arch-omap/common.h
index 089ddc7..1797927 100644
--- a/include/asm-arm/arch-omap/common.h
+++ b/include/asm-arm/arch-omap/common.h
@@ -36,8 +36,12 @@ struct sys_timer;
extern void omap_map_common_io(void);
extern struct sys_timer omap_timer;
extern void omap_serial_init(void);
+#ifdef CONFIG_I2C_OMAP
extern int omap_register_i2c_bus(int bus_id, u32 clkrate,
struct i2c_board_info const *info,
unsigned len);
+#else
+#define omap_register_i2c_bus(...) do { } while (0)
+#endif
#endif /* __ARCH_ARM_MACH_OMAP_COMMON_H */
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2007-11-16 23:45 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-16 0:36 [PATCH] ARM: OMAP: Fix compiler error when I2C_OMAP is not set Kyungmin Park
2007-11-16 9:01 ` Jarkko Nikula
2007-11-16 23:45 ` Tony Lindgren
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox