From: Kyungmin Park Date: Mon, 3 Mar 2008 07:36:23 +0000 (+0900) Subject: ARM: OMAP: Remove compiler warning when i2c is not set X-Git-Tag: v2.6.25-omap1~157 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=6a4cbeb570c483b8d0b8bd43d6e07c2f56ae6162;p=linux-2.6-omap-h63xx.git ARM: OMAP: Remove compiler warning when i2c is not set Remove compiler warning when i2c is not set Signed-off-by: Kyungmin Park Acked-by: Jarkko Nikula Signed-off-by: Tony Lindgren --- diff --git a/include/asm-arm/arch-omap/common.h b/include/asm-arm/arch-omap/common.h index 688fcd790c0..36a3b62d4d8 100644 --- a/include/asm-arm/arch-omap/common.h +++ b/include/asm-arm/arch-omap/common.h @@ -27,9 +27,7 @@ #ifndef __ARCH_ARM_MACH_OMAP_COMMON_H #define __ARCH_ARM_MACH_OMAP_COMMON_H -#ifdef CONFIG_I2C_OMAP #include -#endif struct sys_timer; @@ -41,7 +39,12 @@ 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(a, b, c, d) 0 +static inline int omap_register_i2c_bus(int bus_id, u32 clkrate, + struct i2c_board_info const *info, + unsigned len) +{ + return 0; +} #endif void omap2_set_globals_242x(void);