Commit d19beac1 authored by Thomas Petazzoni's avatar Thomas Petazzoni Committed by Jason Cooper

arm: plat-orion: use void __iomem pointers for UART registration functions

The registration functions for UARTs now take void __iomem pointers,
so we remove the temporary "unsigned long" casts from the
mach-*/common.c files.
Signed-off-by: default avatarThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Acked-by: default avatarArnd Bergmann <arnd@arndb.de>
Tested-by: default avatarAndrew Lunn <andrew@lunn.ch>
Signed-off-by: default avatarJason Cooper <jason@lakedaemon.net>
parent 9758e70a
...@@ -128,8 +128,7 @@ void __init dove_sata_init(struct mv_sata_platform_data *sata_data) ...@@ -128,8 +128,7 @@ void __init dove_sata_init(struct mv_sata_platform_data *sata_data)
****************************************************************************/ ****************************************************************************/
void __init dove_uart0_init(void) void __init dove_uart0_init(void)
{ {
orion_uart0_init((unsigned long) DOVE_UART0_VIRT_BASE, orion_uart0_init(DOVE_UART0_VIRT_BASE, DOVE_UART0_PHYS_BASE,
DOVE_UART0_PHYS_BASE,
IRQ_DOVE_UART_0, tclk); IRQ_DOVE_UART_0, tclk);
} }
...@@ -138,8 +137,7 @@ void __init dove_uart0_init(void) ...@@ -138,8 +137,7 @@ void __init dove_uart0_init(void)
****************************************************************************/ ****************************************************************************/
void __init dove_uart1_init(void) void __init dove_uart1_init(void)
{ {
orion_uart1_init((unsigned long) DOVE_UART1_VIRT_BASE, orion_uart1_init(DOVE_UART1_VIRT_BASE, DOVE_UART1_PHYS_BASE,
DOVE_UART1_PHYS_BASE,
IRQ_DOVE_UART_1, tclk); IRQ_DOVE_UART_1, tclk);
} }
...@@ -148,8 +146,7 @@ void __init dove_uart1_init(void) ...@@ -148,8 +146,7 @@ void __init dove_uart1_init(void)
****************************************************************************/ ****************************************************************************/
void __init dove_uart2_init(void) void __init dove_uart2_init(void)
{ {
orion_uart2_init((unsigned long) DOVE_UART2_VIRT_BASE, orion_uart2_init(DOVE_UART2_VIRT_BASE, DOVE_UART2_PHYS_BASE,
DOVE_UART2_PHYS_BASE,
IRQ_DOVE_UART_2, tclk); IRQ_DOVE_UART_2, tclk);
} }
...@@ -158,8 +155,7 @@ void __init dove_uart2_init(void) ...@@ -158,8 +155,7 @@ void __init dove_uart2_init(void)
****************************************************************************/ ****************************************************************************/
void __init dove_uart3_init(void) void __init dove_uart3_init(void)
{ {
orion_uart3_init((unsigned long) DOVE_UART3_VIRT_BASE, orion_uart3_init(DOVE_UART3_VIRT_BASE, DOVE_UART3_PHYS_BASE,
DOVE_UART3_PHYS_BASE,
IRQ_DOVE_UART_3, tclk); IRQ_DOVE_UART_3, tclk);
} }
......
...@@ -456,8 +456,7 @@ void __init kirkwood_i2c_init(void) ...@@ -456,8 +456,7 @@ void __init kirkwood_i2c_init(void)
void __init kirkwood_uart0_init(void) void __init kirkwood_uart0_init(void)
{ {
orion_uart0_init((unsigned long) UART0_VIRT_BASE, orion_uart0_init(UART0_VIRT_BASE, UART0_PHYS_BASE,
UART0_PHYS_BASE,
IRQ_KIRKWOOD_UART_0, tclk); IRQ_KIRKWOOD_UART_0, tclk);
} }
...@@ -467,8 +466,7 @@ void __init kirkwood_uart0_init(void) ...@@ -467,8 +466,7 @@ void __init kirkwood_uart0_init(void)
****************************************************************************/ ****************************************************************************/
void __init kirkwood_uart1_init(void) void __init kirkwood_uart1_init(void)
{ {
orion_uart1_init((unsigned long) UART1_VIRT_BASE, orion_uart1_init(UART1_VIRT_BASE, UART1_PHYS_BASE,
UART1_PHYS_BASE,
IRQ_KIRKWOOD_UART_1, tclk); IRQ_KIRKWOOD_UART_1, tclk);
} }
......
...@@ -300,8 +300,7 @@ void __init mv78xx0_sata_init(struct mv_sata_platform_data *sata_data) ...@@ -300,8 +300,7 @@ void __init mv78xx0_sata_init(struct mv_sata_platform_data *sata_data)
****************************************************************************/ ****************************************************************************/
void __init mv78xx0_uart0_init(void) void __init mv78xx0_uart0_init(void)
{ {
orion_uart0_init((unsigned long) UART0_VIRT_BASE, orion_uart0_init(UART0_VIRT_BASE, UART0_PHYS_BASE,
UART0_PHYS_BASE,
IRQ_MV78XX0_UART_0, tclk); IRQ_MV78XX0_UART_0, tclk);
} }
...@@ -311,8 +310,7 @@ void __init mv78xx0_uart0_init(void) ...@@ -311,8 +310,7 @@ void __init mv78xx0_uart0_init(void)
****************************************************************************/ ****************************************************************************/
void __init mv78xx0_uart1_init(void) void __init mv78xx0_uart1_init(void)
{ {
orion_uart1_init((unsigned long) UART1_VIRT_BASE, orion_uart1_init(UART1_VIRT_BASE, UART1_PHYS_BASE,
UART1_PHYS_BASE,
IRQ_MV78XX0_UART_1, tclk); IRQ_MV78XX0_UART_1, tclk);
} }
...@@ -322,8 +320,7 @@ void __init mv78xx0_uart1_init(void) ...@@ -322,8 +320,7 @@ void __init mv78xx0_uart1_init(void)
****************************************************************************/ ****************************************************************************/
void __init mv78xx0_uart2_init(void) void __init mv78xx0_uart2_init(void)
{ {
orion_uart2_init((unsigned long) UART2_VIRT_BASE, orion_uart2_init(UART2_VIRT_BASE, UART2_PHYS_BASE,
UART2_PHYS_BASE,
IRQ_MV78XX0_UART_2, tclk); IRQ_MV78XX0_UART_2, tclk);
} }
...@@ -332,8 +329,7 @@ void __init mv78xx0_uart2_init(void) ...@@ -332,8 +329,7 @@ void __init mv78xx0_uart2_init(void)
****************************************************************************/ ****************************************************************************/
void __init mv78xx0_uart3_init(void) void __init mv78xx0_uart3_init(void)
{ {
orion_uart3_init((unsigned long) UART3_VIRT_BASE, orion_uart3_init(UART3_VIRT_BASE, UART3_PHYS_BASE,
UART3_PHYS_BASE,
IRQ_MV78XX0_UART_3, tclk); IRQ_MV78XX0_UART_3, tclk);
} }
......
...@@ -156,8 +156,7 @@ void __init orion5x_spi_init() ...@@ -156,8 +156,7 @@ void __init orion5x_spi_init()
****************************************************************************/ ****************************************************************************/
void __init orion5x_uart0_init(void) void __init orion5x_uart0_init(void)
{ {
orion_uart0_init((unsigned long) UART0_VIRT_BASE, orion_uart0_init(UART0_VIRT_BASE, UART0_PHYS_BASE,
UART0_PHYS_BASE,
IRQ_ORION5X_UART0, tclk); IRQ_ORION5X_UART0, tclk);
} }
...@@ -166,8 +165,7 @@ void __init orion5x_uart0_init(void) ...@@ -166,8 +165,7 @@ void __init orion5x_uart0_init(void)
****************************************************************************/ ****************************************************************************/
void __init orion5x_uart1_init(void) void __init orion5x_uart1_init(void)
{ {
orion_uart1_init((unsigned long) UART1_VIRT_BASE, orion_uart1_init(UART1_VIRT_BASE, UART1_PHYS_BASE,
UART1_PHYS_BASE,
IRQ_ORION5X_UART1, tclk); IRQ_ORION5X_UART1, tclk);
} }
......
...@@ -86,13 +86,13 @@ static void __init uart_complete( ...@@ -86,13 +86,13 @@ static void __init uart_complete(
struct platform_device *orion_uart, struct platform_device *orion_uart,
struct plat_serial8250_port *data, struct plat_serial8250_port *data,
struct resource *resources, struct resource *resources,
unsigned int membase, void __iomem *membase,
resource_size_t mapbase, resource_size_t mapbase,
unsigned int irq, unsigned int irq,
struct clk *clk) struct clk *clk)
{ {
data->mapbase = mapbase; data->mapbase = mapbase;
data->membase = (void __iomem *)membase; data->membase = membase;
data->irq = irq; data->irq = irq;
data->uartclk = uart_get_clk_rate(clk); data->uartclk = uart_get_clk_rate(clk);
orion_uart->dev.platform_data = data; orion_uart->dev.platform_data = data;
...@@ -120,7 +120,7 @@ static struct platform_device orion_uart0 = { ...@@ -120,7 +120,7 @@ static struct platform_device orion_uart0 = {
.id = PLAT8250_DEV_PLATFORM, .id = PLAT8250_DEV_PLATFORM,
}; };
void __init orion_uart0_init(unsigned int membase, void __init orion_uart0_init(void __iomem *membase,
resource_size_t mapbase, resource_size_t mapbase,
unsigned int irq, unsigned int irq,
struct clk *clk) struct clk *clk)
...@@ -148,7 +148,7 @@ static struct platform_device orion_uart1 = { ...@@ -148,7 +148,7 @@ static struct platform_device orion_uart1 = {
.id = PLAT8250_DEV_PLATFORM1, .id = PLAT8250_DEV_PLATFORM1,
}; };
void __init orion_uart1_init(unsigned int membase, void __init orion_uart1_init(void __iomem *membase,
resource_size_t mapbase, resource_size_t mapbase,
unsigned int irq, unsigned int irq,
struct clk *clk) struct clk *clk)
...@@ -176,7 +176,7 @@ static struct platform_device orion_uart2 = { ...@@ -176,7 +176,7 @@ static struct platform_device orion_uart2 = {
.id = PLAT8250_DEV_PLATFORM2, .id = PLAT8250_DEV_PLATFORM2,
}; };
void __init orion_uart2_init(unsigned int membase, void __init orion_uart2_init(void __iomem *membase,
resource_size_t mapbase, resource_size_t mapbase,
unsigned int irq, unsigned int irq,
struct clk *clk) struct clk *clk)
...@@ -204,7 +204,7 @@ static struct platform_device orion_uart3 = { ...@@ -204,7 +204,7 @@ static struct platform_device orion_uart3 = {
.id = 3, .id = 3,
}; };
void __init orion_uart3_init(unsigned int membase, void __init orion_uart3_init(void __iomem *membase,
resource_size_t mapbase, resource_size_t mapbase,
unsigned int irq, unsigned int irq,
struct clk *clk) struct clk *clk)
......
...@@ -13,22 +13,22 @@ ...@@ -13,22 +13,22 @@
struct dsa_platform_data; struct dsa_platform_data;
void __init orion_uart0_init(unsigned int membase, void __init orion_uart0_init(void __iomem *membase,
resource_size_t mapbase, resource_size_t mapbase,
unsigned int irq, unsigned int irq,
struct clk *clk); struct clk *clk);
void __init orion_uart1_init(unsigned int membase, void __init orion_uart1_init(void __iomem *membase,
resource_size_t mapbase, resource_size_t mapbase,
unsigned int irq, unsigned int irq,
struct clk *clk); struct clk *clk);
void __init orion_uart2_init(unsigned int membase, void __init orion_uart2_init(void __iomem *membase,
resource_size_t mapbase, resource_size_t mapbase,
unsigned int irq, unsigned int irq,
struct clk *clk); struct clk *clk);
void __init orion_uart3_init(unsigned int membase, void __init orion_uart3_init(void __iomem *membase,
resource_size_t mapbase, resource_size_t mapbase,
unsigned int irq, unsigned int irq,
struct clk *clk); struct clk *clk);
......
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