This was added in kernel 3.17 in commit efd342fb0031a1 ("of: Provide a function to request and map memory") Signed-off-by: Hauke Mehrtens <hauke@xxxxxxxxxx> --- backport/backport-include/linux/io.h | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 backport/backport-include/linux/io.h diff --git a/backport/backport-include/linux/io.h b/backport/backport-include/linux/io.h new file mode 100644 index 00000000..78ae4650 --- /dev/null +++ b/backport/backport-include/linux/io.h @@ -0,0 +1,9 @@ +#ifndef __BP_LINUX_IO_H +#define __BP_LINUX_IO_H +#include_next <linux/io.h> + +#ifndef IOMEM_ERR_PTR +#define IOMEM_ERR_PTR(err) (__force void __iomem *)ERR_PTR(err) +#endif + +#endif /* __BP_LINUX_IO_H */ -- 2.11.0 -- To unsubscribe from this list: send the line "unsubscribe backports" in