]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
ARM: OMAP: Remove compiler warning when i2c is not set
authorKyungmin Park <kyungmin.park@samsung.com>
Mon, 3 Mar 2008 07:36:23 +0000 (16:36 +0900)
committerTony Lindgren <tony@atomide.com>
Mon, 3 Mar 2008 13:26:11 +0000 (05:26 -0800)
Remove compiler warning when i2c is not set

Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Acked-by: Jarkko Nikula <jarkko.nikula@nokia.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
include/asm-arm/arch-omap/common.h

index 688fcd790c02e128c96b0f3375dc7862a7288eea..36a3b62d4d8d4da2a982a7e3e7961a4d08627615 100644 (file)
@@ -27,9 +27,7 @@
 #ifndef __ARCH_ARM_MACH_OMAP_COMMON_H
 #define __ARCH_ARM_MACH_OMAP_COMMON_H
 
-#ifdef CONFIG_I2C_OMAP
 #include <linux/i2c.h>
-#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);