summaryrefslogtreecommitdiffstats
path: root/drivers/pinctrl/sh-pfc/pfc-r8a7796.c
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert+renesas@glider.be>2019-01-25 14:57:53 +0100
committerGeert Uytterhoeven <geert+renesas@glider.be>2019-04-02 09:57:50 +0200
commit2f9f5094f8b7a1da8852c4a50b205232e62d72dc (patch)
treebe5b0032f61f76904ff1946f2daf59e4916707a2 /drivers/pinctrl/sh-pfc/pfc-r8a7796.c
parentpinctrl: sh-pfc: Introduce PINCTRL_SH_FUNC_GPIO helper symbol (diff)
downloadlinux-2f9f5094f8b7a1da8852c4a50b205232e62d72dc.tar.xz
linux-2f9f5094f8b7a1da8852c4a50b205232e62d72dc.zip
pinctrl: sh-pfc: Add missing #include <linux/errno.h>
Source files using -Exxx error codes should include <linux/errno.h>. On ARM, this header file is included indirectly; on SuperH, it is not, leading to "error: ‘EINVAL’ undeclared" failures when enabling compile-testing later. Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Reviewed-by: Simon Horman <horms+renesas@verge.net.au>
Diffstat (limited to 'drivers/pinctrl/sh-pfc/pfc-r8a7796.c')
-rw-r--r--drivers/pinctrl/sh-pfc/pfc-r8a7796.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/pinctrl/sh-pfc/pfc-r8a7796.c b/drivers/pinctrl/sh-pfc/pfc-r8a7796.c
index a99c519e05a0..bb1255b9bc24 100644
--- a/drivers/pinctrl/sh-pfc/pfc-r8a7796.c
+++ b/drivers/pinctrl/sh-pfc/pfc-r8a7796.c
@@ -11,6 +11,7 @@
* Copyright (C) 2015 Renesas Electronics Corporation
*/
+#include <linux/errno.h>
#include <linux/kernel.h>
#include "core.h"