]> git.openfabrics.org - ~emulex/infiniband.git/commit
gpio: gpio-mxc: Include "<linux/err.h>"
authorFabio Estevam <fabio.estevam@freescale.com>
Mon, 22 Jul 2013 21:17:52 +0000 (18:17 -0300)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 22 Jul 2013 23:26:22 +0000 (01:26 +0200)
commit18f92b19b4101dbe9fef3923028cf66b27847778
treed49717b7180bf93c691d7f6f99ee6232c1e5f0e4
parentee56884e779d2e40c0da497652924873b505b2fe
gpio: gpio-mxc: Include "<linux/err.h>"

Commit 8cd73e4e (gpio: gpio-mxc: Use devm functions) causes the following build
error on imx_v4_v7_defconfig:

drivers/gpio/gpio-mxc.c:414:2: error: implicit declaration of function 'IS_ERR' [-Werror=implicit-function-declaration]
drivers/gpio/gpio-mxc.c:415:3: error: implicit declaration of function 'PTR_ERR' [-Werror=implicit-function-declaration]

Note: imx_v6_v7_defconfig does not give this build error, probably due to some
indirect header file inclusion.

Reported-by: Olof Johansson <olof@lixom.net>
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-mxc.c