diff options
author | Hauke Mehrtens <hauke@hauke-m.de> | 2017-09-11 00:10:16 +0200 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2017-09-11 16:47:40 +0200 |
commit | 438c8181333ebd27f675e81d8ee0b3753e81d4ff (patch) | |
tree | ce48108216b141037163db7b23d0e62c89262ca0 /backport/backport-include/linux/io.h | |
parent | 0161a56f40c8f6bfa3c46fbbc7372f7fcfce19a5 (diff) |
header: add IOMEM_ERR_PTR()
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>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'backport/backport-include/linux/io.h')
-rw-r--r-- | backport/backport-include/linux/io.h | 9 |
1 files changed, 9 insertions, 0 deletions
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 */ |