Commit 34aef6eb authored by Arnd Bergmann's avatar Arnd Bergmann

video: da8xx-fb: use __iomem pointers for MMIO

ARM is moving to stricter checks on readl/write functions,
so we need to use the correct types everywhere.

Cc: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
Cc: linux-fbdev@vger.kernel.org
Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
parent f39f7b7d
...@@ -131,7 +131,7 @@ ...@@ -131,7 +131,7 @@
#define UPPER_MARGIN 32 #define UPPER_MARGIN 32
#define LOWER_MARGIN 32 #define LOWER_MARGIN 32
static resource_size_t da8xx_fb_reg_base; static void __iomem *da8xx_fb_reg_base;
static struct resource *lcdc_regs; static struct resource *lcdc_regs;
static unsigned int lcd_revision; static unsigned int lcd_revision;
static irq_handler_t lcdc_irq_handler; static irq_handler_t lcdc_irq_handler;
...@@ -951,7 +951,7 @@ static int __devexit fb_remove(struct platform_device *dev) ...@@ -951,7 +951,7 @@ static int __devexit fb_remove(struct platform_device *dev)
clk_disable(par->lcdc_clk); clk_disable(par->lcdc_clk);
clk_put(par->lcdc_clk); clk_put(par->lcdc_clk);
framebuffer_release(info); framebuffer_release(info);
iounmap((void __iomem *)da8xx_fb_reg_base); iounmap(da8xx_fb_reg_base);
release_mem_region(lcdc_regs->start, resource_size(lcdc_regs)); release_mem_region(lcdc_regs->start, resource_size(lcdc_regs));
} }
...@@ -1171,7 +1171,7 @@ static int __devinit fb_probe(struct platform_device *device) ...@@ -1171,7 +1171,7 @@ static int __devinit fb_probe(struct platform_device *device)
if (!lcdc_regs) if (!lcdc_regs)
return -EBUSY; return -EBUSY;
da8xx_fb_reg_base = (resource_size_t)ioremap(lcdc_regs->start, len); da8xx_fb_reg_base = ioremap(lcdc_regs->start, len);
if (!da8xx_fb_reg_base) { if (!da8xx_fb_reg_base) {
ret = -EBUSY; ret = -EBUSY;
goto err_request_mem; goto err_request_mem;
...@@ -1392,7 +1392,7 @@ static int __devinit fb_probe(struct platform_device *device) ...@@ -1392,7 +1392,7 @@ static int __devinit fb_probe(struct platform_device *device)
clk_put(fb_clk); clk_put(fb_clk);
err_ioremap: err_ioremap:
iounmap((void __iomem *)da8xx_fb_reg_base); iounmap(da8xx_fb_reg_base);
err_request_mem: err_request_mem:
release_mem_region(lcdc_regs->start, len); release_mem_region(lcdc_regs->start, len);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment