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
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
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