ARM: OMAP: Fix compiler error when I2C_OMAP is not set
PATCH 1/1 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 <[email protected]>
---
include/asm-arm/arch-omap/common.h +4 -0
@@ -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 */
include/asm-arm/arch-omap/common.h
Quoted 5 lines · ext Kyungmin Park
Fix compiler error when
I2C_OMAPis not setinclude/asm-arm/arch-omap/common.h +0
-0
Acked-by Jarkko Nikula <[email protected]>
Quoted 8 lines · Jarkko Nikula
include/asm-arm/arch-omap/common.h
Quoted 5 lines · ext Kyungmin Park
Fix compiler error when
I2C_OMAPis not setinclude/asm-arm/arch-omap/common.h +0
-0Acked-by Jarkko Nikula <[email protected]>
Pushing today.
Tony