login
Header Space

 
 

[PATCHv2 2.6.26-rc1] [POWERPC] Fix of_i2c include for module compilation

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Paul Mackerras <paulus@...>
Cc: Kumar Gala <galak@...>, Jean Delvare <khali@...>, Scott Wood <scottwood@...>, Kernel, Linux <linux-kernel@...>, linuxppc-dev list <linuxppc-dev@...>, Linux I2C <i2c@...>, Jon Smirl <jonsmirl@...>, Laurent Pinchart <laurentp@...>, David Miller <davem@...>, Stephen Rothwell <sfr@...>
Date: Tuesday, May 6, 2008 - 2:40 pm

Remove #ifdef CONFIG_OF_I2C as this breaks module compilation.
Drivers using this header should depend on OF_I2C anyways, so
there's no need to make this conditional

Signed-off-by: Jochen Friedrich <jochen@scram.de>
---
 include/linux/of_i2c.h |    4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)

diff --git a/include/linux/of_i2c.h b/include/linux/of_i2c.h
index 2e5a967..bd2a870 100644
--- a/include/linux/of_i2c.h
+++ b/include/linux/of_i2c.h
@@ -14,11 +14,7 @@
 
 #include <linux/i2c.h>
 
-#ifdef CONFIG_OF_I2C
-
 void of_register_i2c_devices(struct i2c_adapter *adap,
 			     struct device_node *adap_node);
 
-#endif /* CONFIG_OF_I2C */
-
 #endif /* __LINUX_OF_I2C_H */
-- 
1.5.5.1

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCHv2 2.6.26-rc1] [POWERPC] Fix of_i2c include for module..., Jochen Friedrich, (Tue May 6, 2:40 pm)
speck-geostationary