]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
ARM: OMAP: Fix compiler error when I2C_OMAP is not set
authorKyungmin Park <kyungmin.park@samsung.com>
Fri, 16 Nov 2007 00:36:49 +0000 (09:36 +0900)
committerTony Lindgren <tony@atomide.com>
Fri, 16 Nov 2007 23:45:15 +0000 (15:45 -0800)
Fix compiler error when I2C_OMAP 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 089ddc7f9c148fe5ff7ca2bf00145fc7cf6f2876..17979272b6a907f2a0d3885bb4795459bb7a9343 100644 (file)
@@ -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 */