diff options
author | Hou Zhiqiang <Zhiqiang.Hou@freescale.com> | 2015-11-17 17:53:18 +0800 |
---|---|---|
committer | Wolfram Sang <wsa@the-dreams.de> | 2015-11-20 15:58:22 +0100 |
commit | 8bb6fd585d419d906fb3c228db47fbc4e4272a00 (patch) | |
tree | b5d6ec69e627e10fbd712fec619c17a284d827fb /drivers | |
parent | 8005c49d9aea74d382f474ce11afbbc7d7130bec (diff) |
i2c: imx: fix a compiling error
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/i2c/busses/i2c-imx.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/i2c/busses/i2c-imx.c b/drivers/i2c/busses/i2c-imx.c index 1e4d99da4164..9bb0b056b25f 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> |