diff mbox

[4/8] header: add IOMEM_ERR_PTR()

Message ID 20170910221020.13067-5-hauke@hauke-m.de (mailing list archive)
State Accepted
Headers show

Commit Message

Hauke Mehrtens Sept. 10, 2017, 10:10 p.m. UTC
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@hauke-m.de>
---
 backport/backport-include/linux/io.h | 9 +++++++++
 1 file changed, 9 insertions(+)
 create mode 100644 backport/backport-include/linux/io.h
diff mbox

Patch

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 */