From: Arnd Bergmann Date: Wed, 23 Mar 2016 10:36:53 +0000 (+0100) Subject: mfd: syscon: Include errno.h from header X-Git-Tag: Ubuntu-5.2.0-15.16~9150^2~68 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=adae28c59a6a71a971ffed713550911546df0e20;p=mirror_ubuntu-eoan-kernel.git 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 Fixes: 8626ada871f1 ("pinctrl: imx: attach iomuxc device to gpr syscon") Signed-off-by: Lee Jones --- 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 +#include struct device_node;