@@ -334,12 +334,6 @@ static int __init exynos4210_uart_init(struct dt_device_node *dev,
return res;
}
- uart->regs = ioremap_nocache(addr, size);
- if ( !uart->regs )
- {
- early_printk("exynos4210: Unable to map the UART memory\n");
- return -ENOMEM;
- }
res = dt_device_get_irq(dev, 0, &uart->irq);
if ( res )
{
@@ -347,6 +341,13 @@ static int __init exynos4210_uart_init(struct dt_device_node *dev,
return res;
}
+ uart->regs = ioremap_nocache(addr, size);
+ if ( !uart->regs )
+ {
+ early_printk("exynos4210: Unable to map the UART memory\n");
+ return -ENOMEM;
+ }
+
uart->vuart.base_addr = addr;
uart->vuart.size = size;
uart->vuart.data_off = UTXH;
@@ -326,13 +326,6 @@ static int __init omap_uart_init(struct dt_device_node *dev,
return res;
}
- uart->regs = ioremap_attr(addr, size, PAGE_HYPERVISOR_NOCACHE);
- if ( !uart->regs )
- {
- early_printk("omap-uart: Unable to map the UART memory\n");
- return -ENOMEM;
- }
-
res = dt_device_get_irq(dev, 0, &uart->irq);
if ( res )
{
@@ -340,6 +333,14 @@ static int __init omap_uart_init(struct dt_device_node *dev,
return res;
}
+ uart->regs = ioremap_nocache(addr, size);
+ if ( !uart->regs )
+ {
+ early_printk("omap-uart: Unable to map the UART memory\n");
+ return -ENOMEM;
+ }
+
+
uart->vuart.base_addr = addr;
uart->vuart.size = size;
uart->vuart.data_off = UART_THR;
@@ -248,14 +248,6 @@ static int __init pl011_uart_init(struct dt_device_node *dev,
return res;
}
- uart->regs = ioremap_attr(addr, size, PAGE_HYPERVISOR_NOCACHE);
- if ( !uart->regs )
- {
- early_printk("pl011: Unable to map the UART memory\n");
-
- return -ENOMEM;
- }
-
res = dt_device_get_irq(dev, 0, &uart->irq);
if ( res )
{
@@ -263,6 +255,13 @@ static int __init pl011_uart_init(struct dt_device_node *dev,
return res;
}
+ uart->regs = ioremap_nocache(addr, size);
+ if ( !uart->regs )
+ {
+ early_printk("pl011: Unable to map the UART memory\n");
+ return -ENOMEM;
+ }
+
uart->vuart.base_addr = addr;
uart->vuart.size = size;
uart->vuart.data_off = DR;