Re: [PATCH] i2c: imx: fix build issue for platforms without pinctrl

2015-11-17 Thread Li Yang
On Tue, Nov 17, 2015 at 3:11 PM, Li Yang wrote: > With commit 1c4b6c3b (i2c: imx: implement bus recovery) the driver > starts to use pinctrl to do i2c bus recovery. But this breaks build > for platforms that don't implement pinctrl, such as ls1021a and > ls1043a. > > This

[PATCH] i2c: imx: fix build issue for platforms without pinctrl

2015-11-17 Thread Li Yang
With commit 1c4b6c3b (i2c: imx: implement bus recovery) the driver starts to use pinctrl to do i2c bus recovery. But this breaks build for platforms that don't implement pinctrl, such as ls1021a and ls1043a. This patch fix the problem by only compiling the bus recovery code when CONFIG_PINCTRL