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://pilppa.com/gitweb/?a=commitdiff_plain;h=8af302e2dc91d4229968b8eedd4b45c0dd9fc717;p=linux-2.6-omap-h63xx.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 2e5a9673204..bd2a870ec29 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 */