diff options
author | Arnd Bergmann <arnd@arndb.de> | 2016-03-23 06:36:53 -0400 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2016-04-11 08:31:40 -0400 |
commit | adae28c59a6a71a971ffed713550911546df0e20 (patch) | |
tree | 5e9b6f537327ed57267d7ec39640cd73b1034224 | |
parent | ee414de525a9abf29e8a1b0c1b6f79f9e875213a (diff) |
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>
-rw-r--r-- | include/linux/mfd/syscon.h | 1 |
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 @@ | |||
16 | #define __LINUX_MFD_SYSCON_H__ | 16 | #define __LINUX_MFD_SYSCON_H__ |
17 | 17 | ||
18 | #include <linux/err.h> | 18 | #include <linux/err.h> |
19 | #include <linux/errno.h> | ||
19 | 20 | ||
20 | struct device_node; | 21 | struct device_node; |
21 | 22 | ||