Re: [PATCH] i2c-imx: Add missing preporcessor directives

2015-08-15 Thread Sam Ravnborg
On Fri, Aug 14, 2015 at 07:45:51PM -0700, Andrey Smirnov wrote: On non-PowerPC platforms call to i2c_fsl_set_clk() will try to obtain I2C clock freqency from i2c_fsl-clk, however that field would not be initialized if CONFIG_COMMON_CLK is not set. This patch add conditional compilation

Re: [PATCH] i2c-imx: Add missing preporcessor directives

2015-08-15 Thread Andrey Smirnov
This driver is only built for ARCH_IMX (which select COMMON_CLK) or two PowerPC variants. See following snip from Kconfig: config I2C_IMX bool MPC85xx/MPC5200/i.MX I2C Master driver depends on (ARCH_IMX !ARCH_IMX1) || ARCH_MPC85XX || ARCH_MPC5200 How did you hit this

[PATCH] i2c-imx: Add missing preporcessor directives

2015-08-14 Thread Andrey Smirnov
On non-PowerPC platforms call to i2c_fsl_set_clk() will try to obtain I2C clock freqency from i2c_fsl-clk, however that field would not be initialized if CONFIG_COMMON_CLK is not set. This patch add conditional compilation directives to make sure that i2c_fsl_set_clk() is not called if