[PATCH 5/9] drivers: pxafb: Fix IOMEM API evolution

Robert Jarzmik robert.jarzmik at free.fr
Wed Nov 23 22:02:40 EST 2011


As the method to access the IO region changed in barebox
mainline, amend accordingly pxafb.

Signed-off-by: Robert Jarzmik <robert.jarzmik at free.fr>
---
 drivers/video/pxa.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/video/pxa.c b/drivers/video/pxa.c
index bc039a9..ddd7087 100644
--- a/drivers/video/pxa.c
+++ b/drivers/video/pxa.c
@@ -503,7 +503,7 @@ static int pxafb_probe(struct device_d *dev)
 	info = &fbi->info;
 
 	fbi->mode = pdata->mode;
-	fbi->regs = (void __iomem *)dev->map_base;
+	fbi->regs = dev_request_mem_region(dev, 0);
 
 	fbi->dev = dev;
 	fbi->lcd_power = pdata->lcd_power;
-- 
1.7.5.4




More information about the barebox mailing list