From d87e74e67b5285e52c986e1c1be20b4107060985 Mon Sep 17 00:00:00 2001 From: Kyungmin Park Date: Fri, 16 Nov 2007 09:36:49 +0900 Subject: [PATCH] ARM: OMAP: Fix compiler error when I2C_OMAP is not set Fix compiler error when I2C_OMAP is not set Signed-off-by: Kyungmin Park Acked-by: Jarkko Nikula Signed-off-by: Tony Lindgren --- include/asm-arm/arch-omap/common.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/asm-arm/arch-omap/common.h b/include/asm-arm/arch-omap/common.h index 089ddc7f9c1..17979272b6a 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 */ -- 2.41.1