]> git.karo-electronics.de Git - linux-beck.git/commitdiff
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)
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

index 91f2ac35038a45aa2da41c17abbc2e3fa61f1ab4..875a7c5395913870e29404c3d60f7eb06264468e 100644 (file)
@@ -19,6 +19,7 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 
+#include <linux/err.h>
 #include <linux/init.h>
 #include <linux/interrupt.h>
 #include <linux/io.h>