[PATCH] driver: make all dev_request_mem_region_* routines MIPS compatible
yegorslists at googlemail.com
yegorslists at googlemail.com
Mon Nov 30 00:40:04 PST 2015
From: Yegor Yefremov <yegorslists at googlemail.com>
Use IOMEM() macro in all dev_request_mem_region_* routines to allow
the proper mapping on all platforms.
Signed-off-by: Yegor Yefremov <yegorslists at googlemail.com>
---
drivers/base/driver.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/base/driver.c b/drivers/base/driver.c
index 943deb4..a70fbb2 100644
--- a/drivers/base/driver.c
+++ b/drivers/base/driver.c
@@ -380,7 +380,7 @@ void __iomem *dev_request_mem_region_by_name(struct device_d *dev, const char *n
if (IS_ERR(res))
return ERR_CAST(res);
- return (void __force __iomem *)res->start;
+ return IOMEM(res->start);
}
EXPORT_SYMBOL(dev_request_mem_region_by_name);
@@ -396,7 +396,7 @@ void __iomem *dev_request_mem_region_err_null(struct device_d *dev, int num)
if (IS_ERR(res))
return NULL;
- return (void __force __iomem *)res->start;
+ return IOMEM(res->start);
}
EXPORT_SYMBOL(dev_request_mem_region_err_null);
--
2.1.4
More information about the barebox
mailing list