summaryrefslogtreecommitdiffstats
path: root/include/linux/mfd/syscon.h
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2016-03-23 11:36:53 +0100
committerLee Jones <lee.jones@linaro.org>2016-04-11 13:31:40 +0100
commitadae28c59a6a71a971ffed713550911546df0e20 (patch)
tree5e9b6f537327ed57267d7ec39640cd73b1034224 /include/linux/mfd/syscon.h
parentee414de525a9abf29e8a1b0c1b6f79f9e875213a (diff)
downloadlinux-stable-adae28c59a6a71a971ffed713550911546df0e20.tar.gz
linux-stable-adae28c59a6a71a971ffed713550911546df0e20.tar.bz2
linux-stable-adae28c59a6a71a971ffed713550911546df0e20.zip
mfd: syscon: Include errno.h from header
The syscon header uses the ENOTSUPP error constant, but doesn't include the header that defines it. This causes a build error after the imx pinctrl driver started using syscon: include/linux/mfd/syscon.h: In function 'syscon_node_to_regmap': include/linux/mfd/syscon.h:32:18: error: 'ENOTSUPP' undeclared (first use in this function) return ERR_PTR(-ENOTSUPP); ^~~~~~~~ This adds the missing #include. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Fixes: 8626ada871f1 ("pinctrl: imx: attach iomuxc device to gpr syscon") Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'include/linux/mfd/syscon.h')
-rw-r--r--include/linux/mfd/syscon.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/mfd/syscon.h b/include/linux/mfd/syscon.h
index 1088149be0c9..40a76b97b7ab 100644
--- a/include/linux/mfd/syscon.h
+++ b/include/linux/mfd/syscon.h
@@ -16,6 +16,7 @@
#define __LINUX_MFD_SYSCON_H__
#include <linux/err.h>
+#include <linux/errno.h>
struct device_node;