[ARM] omap: convert OMAP drivers to use ioremap()
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Este cometimento está contido em:

cometido por
Russell King

ascendente
690b5a13b2
cometimento
55c381e489
@@ -59,7 +59,7 @@
|
||||
#define DISPC_CONTROL 0x0040
|
||||
|
||||
static struct {
|
||||
u32 base;
|
||||
void __iomem *base;
|
||||
void (*lcdc_callback)(void *data);
|
||||
void *lcdc_callback_data;
|
||||
unsigned long l4_khz;
|
||||
@@ -518,7 +518,11 @@ static int rfbi_init(struct omapfb_device *fbdev)
|
||||
int r;
|
||||
|
||||
rfbi.fbdev = fbdev;
|
||||
rfbi.base = io_p2v(RFBI_BASE);
|
||||
rfbi.base = ioremap(RFBI_BASE, SZ_1K);
|
||||
if (!rfbi.base) {
|
||||
dev_err(fbdev->dev, "can't ioremap RFBI\n");
|
||||
return -ENOMEM;
|
||||
}
|
||||
|
||||
if ((r = rfbi_get_clocks()) < 0)
|
||||
return r;
|
||||
@@ -566,6 +570,7 @@ static void rfbi_cleanup(void)
|
||||
{
|
||||
omap_dispc_free_irq();
|
||||
rfbi_put_clocks();
|
||||
iounmap(rfbi.base);
|
||||
}
|
||||
|
||||
const struct lcd_ctrl_extif omap2_ext_if = {
|
||||
|
Criar uma nova questão referindo esta
Bloquear um utilizador