Skip to contentSkip to conversation

ARM: OMAP: Fix compiler error when I2C_OMAP is not set

PATCH In review Kyungmin Park 3 participants 3 messages Nov 16, 2007

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: OMAP: Fix compiler error when I2C_OMAP is not set

Fix compiler error when I2C_OMAP is not set

---

include/asm-arm/arch-omap/common.h +4 -0
index 089ddc7..1797927 100644
@@ -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 */
#2 lore raw
Quoted 8 lines · Jarkko Nikula

include/asm-arm/arch-omap/common.h

Quoted 5 lines · ext Kyungmin Park

Fix compiler error when I2C_OMAP is not set

include/asm-arm/arch-omap/common.h +0 -0

Pushing today.

Tony