mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] driver: make all dev_request_mem_region_* routines MIPS compatible
@ 2015-11-30  8:40 yegorslists
  2015-12-01  8:25 ` Sascha Hauer
  0 siblings, 1 reply; 2+ messages in thread
From: yegorslists @ 2015-11-30  8:40 UTC (permalink / raw)
  To: barebox

From: Yegor Yefremov <yegorslists@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@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


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-12-01  8:25 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-11-30  8:40 [PATCH] driver: make all dev_request_mem_region_* routines MIPS compatible yegorslists
2015-12-01  8:25 ` Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox