Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[POWERPC] Fix of_i2c include for module compilation

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>

authored by

Jochen Friedrich and committed by
Paul Mackerras
8af302e2 76bc080e

-4
-4
include/linux/of_i2c.h
··· 14 14 15 15 #include <linux/i2c.h> 16 16 17 - #ifdef CONFIG_OF_I2C 18 - 19 17 void of_register_i2c_devices(struct i2c_adapter *adap, 20 18 struct device_node *adap_node); 21 - 22 - #endif /* CONFIG_OF_I2C */ 23 19 24 20 #endif /* __LINUX_OF_I2C_H */