i2c: imx: fix a compiling error
authorHou Zhiqiang <Zhiqiang.Hou@freescale.com>
Tue, 17 Nov 2015 09:53:18 +0000 (17:53 +0800)
committerWolfram Sang <wsa@the-dreams.de>
Fri, 20 Nov 2015 14:58:22 +0000 (15:58 +0100)
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>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-imx.c

index 1e4d99da41646d98a85340369828bb262c77075f..9bb0b056b25f235085df0e994c7c6584581a5a6d 100644 (file)
@@ -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>