From: Jochen Friedrich Date: Tue, 6 May 2008 18:40:01 +0000 (+1000) Subject: [POWERPC] Fix of_i2c include for module compilation X-Git-Tag: v2.6.26-rc2~16^2~5 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8af302e2dc91d4229968b8eedd4b45c0dd9fc717;p=thirdparty%2Fkernel%2Flinux.git [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 Signed-off-by: Paul Mackerras --- diff --git a/include/linux/of_i2c.h b/include/linux/of_i2c.h index 2e5a967320422..bd2a870ec2962 100644 --- a/include/linux/of_i2c.h +++ b/include/linux/of_i2c.h @@ -14,11 +14,7 @@ #include -#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 */