Skip to content

Commit

Permalink
[POWERPC] Fix of_i2c include for module compilation
Browse files Browse the repository at this point in the history
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>
Signed-off-by: Paul Mackerras <paulus@samba.org>
  • Loading branch information
Jochen Friedrich authored and Paul Mackerras committed May 9, 2008
1 parent 76bc080 commit 8af302e
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions include/linux/of_i2c.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */

0 comments on commit 8af302e

Please sign in to comment.