ARM: OMAP: Remove compiler warning when i2c is not set
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>
This commit is contained in:
committed by
Tony Lindgren
parent
cfa9a63a9a
commit
9be401a2ae
@@ -27,9 +27,7 @@
|
|||||||
#ifndef __ARCH_ARM_MACH_OMAP_COMMON_H
|
#ifndef __ARCH_ARM_MACH_OMAP_COMMON_H
|
||||||
#define __ARCH_ARM_MACH_OMAP_COMMON_H
|
#define __ARCH_ARM_MACH_OMAP_COMMON_H
|
||||||
|
|
||||||
#ifdef CONFIG_I2C_OMAP
|
|
||||||
#include <linux/i2c.h>
|
#include <linux/i2c.h>
|
||||||
#endif
|
|
||||||
|
|
||||||
struct sys_timer;
|
struct sys_timer;
|
||||||
|
|
||||||
@@ -41,7 +39,12 @@ extern int omap_register_i2c_bus(int bus_id, u32 clkrate,
|
|||||||
struct i2c_board_info const *info,
|
struct i2c_board_info const *info,
|
||||||
unsigned len);
|
unsigned len);
|
||||||
#else
|
#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
|
#endif
|
||||||
|
|
||||||
#endif /* __ARCH_ARM_MACH_OMAP_COMMON_H */
|
#endif /* __ARCH_ARM_MACH_OMAP_COMMON_H */
|
||||||
|
Reference in New Issue
Block a user