]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
mfd: syscon: Include errno.h from header
authorArnd Bergmann <arnd@arndb.de>
Wed, 23 Mar 2016 10:36:53 +0000 (11:36 +0100)
committerLee Jones <lee.jones@linaro.org>
Mon, 11 Apr 2016 12:31:40 +0000 (13:31 +0100)
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>
include/linux/mfd/syscon.h

index 1088149be0c95e26287d9c781eb467e056b0b08a..40a76b97b7ab9d8eabf07b1fa7272f477e92b074 100644 (file)
@@ -16,6 +16,7 @@
 #define __LINUX_MFD_SYSCON_H__
 
 #include <linux/err.h>
+#include <linux/errno.h>
 
 struct device_node;