diff options
author | Tony Lindgren <tony@atomide.com> | 2010-12-07 19:25:40 -0500 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2010-12-07 19:25:40 -0500 |
commit | be40f7a3d7b53c1a44e11b376b4a395d6b91f58d (patch) | |
tree | a9ee61eadec70f77c08ecbb386c1bb447ef604ba /arch/arm | |
parent | 00b4ade1f1968b55bb57a91c1f09a40fc33f72a0 (diff) |
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: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm')
-rw-r--r-- | arch/arm/plat-omap/i2c.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/arm/plat-omap/i2c.c b/arch/arm/plat-omap/i2c.c index a6cf4e94f14c..db9c4efd79e3 100644 --- a/arch/arm/plat-omap/i2c.c +++ b/arch/arm/plat-omap/i2c.c | |||
@@ -130,6 +130,7 @@ static struct omap_device_pm_latency omap_i2c_latency[] = { | |||
130 | }, | 130 | }, |
131 | }; | 131 | }; |
132 | 132 | ||
133 | #ifdef CONFIG_ARCH_OMAP2PLUS | ||
133 | static inline int omap2_i2c_add_bus(int bus_id) | 134 | static inline int omap2_i2c_add_bus(int bus_id) |
134 | { | 135 | { |
135 | int l; | 136 | int l; |
@@ -166,6 +167,12 @@ static inline int omap2_i2c_add_bus(int bus_id) | |||
166 | 167 | ||
167 | return PTR_ERR(od); | 168 | return PTR_ERR(od); |
168 | } | 169 | } |
170 | #else | ||
171 | static inline int omap2_i2c_add_bus(int bus_id) | ||
172 | { | ||
173 | return 0; | ||
174 | } | ||
175 | #endif | ||
169 | 176 | ||
170 | static int __init omap_i2c_add_bus(int bus_id) | 177 | static int __init omap_i2c_add_bus(int bus_id) |
171 | { | 178 | { |