diff mbox

[PATCHv8,1/5] i2c: imx: fix a compiling error

Message ID 1447754002-40555-1-git-send-email-Zhiqiang.Hou@freescale.com (mailing list archive)
State New, archived
Headers show

Commit Message

Zhiqiang Hou Nov. 17, 2015, 9:53 a.m. UTC
From: Hou Zhiqiang <Zhiqiang.Hou@freescale.com>

drivers/i2c/busses/i2c-imx.c:978:2: error: implicit declaration of
function ‘pinctrl_select_state’ [-Werror=implicit-function-declaration]
  pinctrl_select_state(i2c_imx->pinctrl, i2c_imx->pinctrl_pins_gpio);
  ^

Signed-off-by: Hou Zhiqiang <Zhiqiang.Hou@freescale.com>
---
V8:
 - New patch.

 drivers/i2c/busses/i2c-imx.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Wolfram Sang Nov. 20, 2015, 2:59 p.m. UTC | #1
On Tue, Nov 17, 2015 at 05:53:18PM +0800, Zhiqiang Hou wrote:
> From: Hou Zhiqiang <Zhiqiang.Hou@freescale.com>
> 
> drivers/i2c/busses/i2c-imx.c:978:2: error: implicit declaration of
> function ‘pinctrl_select_state’ [-Werror=implicit-function-declaration]
>   pinctrl_select_state(i2c_imx->pinctrl, i2c_imx->pinctrl_pins_gpio);
>   ^
> 
> Signed-off-by: Hou Zhiqiang <Zhiqiang.Hou@freescale.com>

Applied to for-current, thanks!
diff mbox

Patch

diff --git a/drivers/i2c/busses/i2c-imx.c b/drivers/i2c/busses/i2c-imx.c
index 1e4d99d..9bb0b05 100644
--- a/drivers/i2c/busses/i2c-imx.c
+++ b/drivers/i2c/busses/i2c-imx.c
@@ -50,6 +50,7 @@ 
 #include <linux/of_device.h>
 #include <linux/of_dma.h>
 #include <linux/of_gpio.h>
+#include <linux/pinctrl/consumer.h>
 #include <linux/platform_data/i2c-imx.h>
 #include <linux/platform_device.h>
 #include <linux/sched.h>