提交 be40f7a3 编写于 作者: T Tony Lindgren

omap: Fix undefined reference to omap2_i2c_mux_pins

In some cases we can get error function `omap2_i2c_add_bus':
arch/arm/plat-omap/i2c.c:136: undefined reference to `omap2_i2c_mux_pins'
arch/arm/plat-omap/i2c.c:141: undefined reference to `omap_hwmod_lookup'
arch/arm/plat-omap/i2c.c:157: undefined reference to `omap_device_build'
Signed-off-by: NTony Lindgren <tony@atomide.com>
上级 00b4ade1
...@@ -130,6 +130,7 @@ static struct omap_device_pm_latency omap_i2c_latency[] = { ...@@ -130,6 +130,7 @@ static struct omap_device_pm_latency omap_i2c_latency[] = {
}, },
}; };
#ifdef CONFIG_ARCH_OMAP2PLUS
static inline int omap2_i2c_add_bus(int bus_id) static inline int omap2_i2c_add_bus(int bus_id)
{ {
int l; int l;
...@@ -166,6 +167,12 @@ static inline int omap2_i2c_add_bus(int bus_id) ...@@ -166,6 +167,12 @@ static inline int omap2_i2c_add_bus(int bus_id)
return PTR_ERR(od); return PTR_ERR(od);
} }
#else
static inline int omap2_i2c_add_bus(int bus_id)
{
return 0;
}
#endif
static int __init omap_i2c_add_bus(int bus_id) static int __init omap_i2c_add_bus(int bus_id)
{ {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册