diff options
author | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2012-09-11 08:27:23 -0400 |
---|---|---|
committer | Jason Cooper <jason@lakedaemon.net> | 2012-09-21 14:04:14 -0400 |
commit | d19beac1d9358bb4a2a303f4327bf2d40ba88464 (patch) | |
tree | ee26398249ab42f5a21e861ee34b5cdde61a6f22 | |
parent | 9758e70a448f92fb850712650a0394d8532c17ff (diff) |
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: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Tested-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Jason Cooper <jason@lakedaemon.net>
-rw-r--r-- | arch/arm/mach-dove/common.c | 12 | ||||
-rw-r--r-- | arch/arm/mach-kirkwood/common.c | 6 | ||||
-rw-r--r-- | arch/arm/mach-mv78xx0/common.c | 12 | ||||
-rw-r--r-- | arch/arm/mach-orion5x/common.c | 6 | ||||
-rw-r--r-- | arch/arm/plat-orion/common.c | 12 | ||||
-rw-r--r-- | arch/arm/plat-orion/include/plat/common.h | 8 |
6 files changed, 22 insertions, 34 deletions
diff --git a/arch/arm/mach-dove/common.c b/arch/arm/mach-dove/common.c index 533fd8123c70..ba55f631cccc 100644 --- a/arch/arm/mach-dove/common.c +++ b/arch/arm/mach-dove/common.c | |||
@@ -128,8 +128,7 @@ void __init dove_sata_init(struct mv_sata_platform_data *sata_data) | |||
128 | ****************************************************************************/ | 128 | ****************************************************************************/ |
129 | void __init dove_uart0_init(void) | 129 | void __init dove_uart0_init(void) |
130 | { | 130 | { |
131 | orion_uart0_init((unsigned long) DOVE_UART0_VIRT_BASE, | 131 | orion_uart0_init(DOVE_UART0_VIRT_BASE, DOVE_UART0_PHYS_BASE, |
132 | DOVE_UART0_PHYS_BASE, | ||
133 | IRQ_DOVE_UART_0, tclk); | 132 | IRQ_DOVE_UART_0, tclk); |
134 | } | 133 | } |
135 | 134 | ||
@@ -138,8 +137,7 @@ void __init dove_uart0_init(void) | |||
138 | ****************************************************************************/ | 137 | ****************************************************************************/ |
139 | void __init dove_uart1_init(void) | 138 | void __init dove_uart1_init(void) |
140 | { | 139 | { |
141 | orion_uart1_init((unsigned long) DOVE_UART1_VIRT_BASE, | 140 | orion_uart1_init(DOVE_UART1_VIRT_BASE, DOVE_UART1_PHYS_BASE, |
142 | DOVE_UART1_PHYS_BASE, | ||
143 | IRQ_DOVE_UART_1, tclk); | 141 | IRQ_DOVE_UART_1, tclk); |
144 | } | 142 | } |
145 | 143 | ||
@@ -148,8 +146,7 @@ void __init dove_uart1_init(void) | |||
148 | ****************************************************************************/ | 146 | ****************************************************************************/ |
149 | void __init dove_uart2_init(void) | 147 | void __init dove_uart2_init(void) |
150 | { | 148 | { |
151 | orion_uart2_init((unsigned long) DOVE_UART2_VIRT_BASE, | 149 | orion_uart2_init(DOVE_UART2_VIRT_BASE, DOVE_UART2_PHYS_BASE, |
152 | DOVE_UART2_PHYS_BASE, | ||
153 | IRQ_DOVE_UART_2, tclk); | 150 | IRQ_DOVE_UART_2, tclk); |
154 | } | 151 | } |
155 | 152 | ||
@@ -158,8 +155,7 @@ void __init dove_uart2_init(void) | |||
158 | ****************************************************************************/ | 155 | ****************************************************************************/ |
159 | void __init dove_uart3_init(void) | 156 | void __init dove_uart3_init(void) |
160 | { | 157 | { |
161 | orion_uart3_init((unsigned long) DOVE_UART3_VIRT_BASE, | 158 | orion_uart3_init(DOVE_UART3_VIRT_BASE, DOVE_UART3_PHYS_BASE, |
162 | DOVE_UART3_PHYS_BASE, | ||
163 | IRQ_DOVE_UART_3, tclk); | 159 | IRQ_DOVE_UART_3, tclk); |
164 | } | 160 | } |
165 | 161 | ||
diff --git a/arch/arm/mach-kirkwood/common.c b/arch/arm/mach-kirkwood/common.c index 75bc04da8d99..defceca51841 100644 --- a/arch/arm/mach-kirkwood/common.c +++ b/arch/arm/mach-kirkwood/common.c | |||
@@ -456,8 +456,7 @@ void __init kirkwood_i2c_init(void) | |||
456 | 456 | ||
457 | void __init kirkwood_uart0_init(void) | 457 | void __init kirkwood_uart0_init(void) |
458 | { | 458 | { |
459 | orion_uart0_init((unsigned long) UART0_VIRT_BASE, | 459 | orion_uart0_init(UART0_VIRT_BASE, UART0_PHYS_BASE, |
460 | UART0_PHYS_BASE, | ||
461 | IRQ_KIRKWOOD_UART_0, tclk); | 460 | IRQ_KIRKWOOD_UART_0, tclk); |
462 | } | 461 | } |
463 | 462 | ||
@@ -467,8 +466,7 @@ void __init kirkwood_uart0_init(void) | |||
467 | ****************************************************************************/ | 466 | ****************************************************************************/ |
468 | void __init kirkwood_uart1_init(void) | 467 | void __init kirkwood_uart1_init(void) |
469 | { | 468 | { |
470 | orion_uart1_init((unsigned long) UART1_VIRT_BASE, | 469 | orion_uart1_init(UART1_VIRT_BASE, UART1_PHYS_BASE, |
471 | UART1_PHYS_BASE, | ||
472 | IRQ_KIRKWOOD_UART_1, tclk); | 470 | IRQ_KIRKWOOD_UART_1, tclk); |
473 | } | 471 | } |
474 | 472 | ||
diff --git a/arch/arm/mach-mv78xx0/common.c b/arch/arm/mach-mv78xx0/common.c index c4e3458e0674..fcda4a4f830d 100644 --- a/arch/arm/mach-mv78xx0/common.c +++ b/arch/arm/mach-mv78xx0/common.c | |||
@@ -300,8 +300,7 @@ void __init mv78xx0_sata_init(struct mv_sata_platform_data *sata_data) | |||
300 | ****************************************************************************/ | 300 | ****************************************************************************/ |
301 | void __init mv78xx0_uart0_init(void) | 301 | void __init mv78xx0_uart0_init(void) |
302 | { | 302 | { |
303 | orion_uart0_init((unsigned long) UART0_VIRT_BASE, | 303 | orion_uart0_init(UART0_VIRT_BASE, UART0_PHYS_BASE, |
304 | UART0_PHYS_BASE, | ||
305 | IRQ_MV78XX0_UART_0, tclk); | 304 | IRQ_MV78XX0_UART_0, tclk); |
306 | } | 305 | } |
307 | 306 | ||
@@ -311,8 +310,7 @@ void __init mv78xx0_uart0_init(void) | |||
311 | ****************************************************************************/ | 310 | ****************************************************************************/ |
312 | void __init mv78xx0_uart1_init(void) | 311 | void __init mv78xx0_uart1_init(void) |
313 | { | 312 | { |
314 | orion_uart1_init((unsigned long) UART1_VIRT_BASE, | 313 | orion_uart1_init(UART1_VIRT_BASE, UART1_PHYS_BASE, |
315 | UART1_PHYS_BASE, | ||
316 | IRQ_MV78XX0_UART_1, tclk); | 314 | IRQ_MV78XX0_UART_1, tclk); |
317 | } | 315 | } |
318 | 316 | ||
@@ -322,8 +320,7 @@ void __init mv78xx0_uart1_init(void) | |||
322 | ****************************************************************************/ | 320 | ****************************************************************************/ |
323 | void __init mv78xx0_uart2_init(void) | 321 | void __init mv78xx0_uart2_init(void) |
324 | { | 322 | { |
325 | orion_uart2_init((unsigned long) UART2_VIRT_BASE, | 323 | orion_uart2_init(UART2_VIRT_BASE, UART2_PHYS_BASE, |
326 | UART2_PHYS_BASE, | ||
327 | IRQ_MV78XX0_UART_2, tclk); | 324 | IRQ_MV78XX0_UART_2, tclk); |
328 | } | 325 | } |
329 | 326 | ||
@@ -332,8 +329,7 @@ void __init mv78xx0_uart2_init(void) | |||
332 | ****************************************************************************/ | 329 | ****************************************************************************/ |
333 | void __init mv78xx0_uart3_init(void) | 330 | void __init mv78xx0_uart3_init(void) |
334 | { | 331 | { |
335 | orion_uart3_init((unsigned long) UART3_VIRT_BASE, | 332 | orion_uart3_init(UART3_VIRT_BASE, UART3_PHYS_BASE, |
336 | UART3_PHYS_BASE, | ||
337 | IRQ_MV78XX0_UART_3, tclk); | 333 | IRQ_MV78XX0_UART_3, tclk); |
338 | } | 334 | } |
339 | 335 | ||
diff --git a/arch/arm/mach-orion5x/common.c b/arch/arm/mach-orion5x/common.c index a890cb0eb83d..79f9ffb9a142 100644 --- a/arch/arm/mach-orion5x/common.c +++ b/arch/arm/mach-orion5x/common.c | |||
@@ -156,8 +156,7 @@ void __init orion5x_spi_init() | |||
156 | ****************************************************************************/ | 156 | ****************************************************************************/ |
157 | void __init orion5x_uart0_init(void) | 157 | void __init orion5x_uart0_init(void) |
158 | { | 158 | { |
159 | orion_uart0_init((unsigned long) UART0_VIRT_BASE, | 159 | orion_uart0_init(UART0_VIRT_BASE, UART0_PHYS_BASE, |
160 | UART0_PHYS_BASE, | ||
161 | IRQ_ORION5X_UART0, tclk); | 160 | IRQ_ORION5X_UART0, tclk); |
162 | } | 161 | } |
163 | 162 | ||
@@ -166,8 +165,7 @@ void __init orion5x_uart0_init(void) | |||
166 | ****************************************************************************/ | 165 | ****************************************************************************/ |
167 | void __init orion5x_uart1_init(void) | 166 | void __init orion5x_uart1_init(void) |
168 | { | 167 | { |
169 | orion_uart1_init((unsigned long) UART1_VIRT_BASE, | 168 | orion_uart1_init(UART1_VIRT_BASE, UART1_PHYS_BASE, |
170 | UART1_PHYS_BASE, | ||
171 | IRQ_ORION5X_UART1, tclk); | 169 | IRQ_ORION5X_UART1, tclk); |
172 | } | 170 | } |
173 | 171 | ||
diff --git a/arch/arm/plat-orion/common.c b/arch/arm/plat-orion/common.c index b8b747a9d360..5bed71139945 100644 --- a/arch/arm/plat-orion/common.c +++ b/arch/arm/plat-orion/common.c | |||
@@ -86,13 +86,13 @@ static void __init uart_complete( | |||
86 | struct platform_device *orion_uart, | 86 | struct platform_device *orion_uart, |
87 | struct plat_serial8250_port *data, | 87 | struct plat_serial8250_port *data, |
88 | struct resource *resources, | 88 | struct resource *resources, |
89 | unsigned int membase, | 89 | void __iomem *membase, |
90 | resource_size_t mapbase, | 90 | resource_size_t mapbase, |
91 | unsigned int irq, | 91 | unsigned int irq, |
92 | struct clk *clk) | 92 | struct clk *clk) |
93 | { | 93 | { |
94 | data->mapbase = mapbase; | 94 | data->mapbase = mapbase; |
95 | data->membase = (void __iomem *)membase; | 95 | data->membase = membase; |
96 | data->irq = irq; | 96 | data->irq = irq; |
97 | data->uartclk = uart_get_clk_rate(clk); | 97 | data->uartclk = uart_get_clk_rate(clk); |
98 | orion_uart->dev.platform_data = data; | 98 | orion_uart->dev.platform_data = data; |
@@ -120,7 +120,7 @@ static struct platform_device orion_uart0 = { | |||
120 | .id = PLAT8250_DEV_PLATFORM, | 120 | .id = PLAT8250_DEV_PLATFORM, |
121 | }; | 121 | }; |
122 | 122 | ||
123 | void __init orion_uart0_init(unsigned int membase, | 123 | void __init orion_uart0_init(void __iomem *membase, |
124 | resource_size_t mapbase, | 124 | resource_size_t mapbase, |
125 | unsigned int irq, | 125 | unsigned int irq, |
126 | struct clk *clk) | 126 | struct clk *clk) |
@@ -148,7 +148,7 @@ static struct platform_device orion_uart1 = { | |||
148 | .id = PLAT8250_DEV_PLATFORM1, | 148 | .id = PLAT8250_DEV_PLATFORM1, |
149 | }; | 149 | }; |
150 | 150 | ||
151 | void __init orion_uart1_init(unsigned int membase, | 151 | void __init orion_uart1_init(void __iomem *membase, |
152 | resource_size_t mapbase, | 152 | resource_size_t mapbase, |
153 | unsigned int irq, | 153 | unsigned int irq, |
154 | struct clk *clk) | 154 | struct clk *clk) |
@@ -176,7 +176,7 @@ static struct platform_device orion_uart2 = { | |||
176 | .id = PLAT8250_DEV_PLATFORM2, | 176 | .id = PLAT8250_DEV_PLATFORM2, |
177 | }; | 177 | }; |
178 | 178 | ||
179 | void __init orion_uart2_init(unsigned int membase, | 179 | void __init orion_uart2_init(void __iomem *membase, |
180 | resource_size_t mapbase, | 180 | resource_size_t mapbase, |
181 | unsigned int irq, | 181 | unsigned int irq, |
182 | struct clk *clk) | 182 | struct clk *clk) |
@@ -204,7 +204,7 @@ static struct platform_device orion_uart3 = { | |||
204 | .id = 3, | 204 | .id = 3, |
205 | }; | 205 | }; |
206 | 206 | ||
207 | void __init orion_uart3_init(unsigned int membase, | 207 | void __init orion_uart3_init(void __iomem *membase, |
208 | resource_size_t mapbase, | 208 | resource_size_t mapbase, |
209 | unsigned int irq, | 209 | unsigned int irq, |
210 | struct clk *clk) | 210 | struct clk *clk) |
diff --git a/arch/arm/plat-orion/include/plat/common.h b/arch/arm/plat-orion/include/plat/common.h index ae2377ef63e5..6bbc3fe5f58e 100644 --- a/arch/arm/plat-orion/include/plat/common.h +++ b/arch/arm/plat-orion/include/plat/common.h | |||
@@ -13,22 +13,22 @@ | |||
13 | 13 | ||
14 | struct dsa_platform_data; | 14 | struct dsa_platform_data; |
15 | 15 | ||
16 | void __init orion_uart0_init(unsigned int membase, | 16 | void __init orion_uart0_init(void __iomem *membase, |
17 | resource_size_t mapbase, | 17 | resource_size_t mapbase, |
18 | unsigned int irq, | 18 | unsigned int irq, |
19 | struct clk *clk); | 19 | struct clk *clk); |
20 | 20 | ||
21 | void __init orion_uart1_init(unsigned int membase, | 21 | void __init orion_uart1_init(void __iomem *membase, |
22 | resource_size_t mapbase, | 22 | resource_size_t mapbase, |
23 | unsigned int irq, | 23 | unsigned int irq, |
24 | struct clk *clk); | 24 | struct clk *clk); |
25 | 25 | ||
26 | void __init orion_uart2_init(unsigned int membase, | 26 | void __init orion_uart2_init(void __iomem *membase, |
27 | resource_size_t mapbase, | 27 | resource_size_t mapbase, |
28 | unsigned int irq, | 28 | unsigned int irq, |
29 | struct clk *clk); | 29 | struct clk *clk); |
30 | 30 | ||
31 | void __init orion_uart3_init(unsigned int membase, | 31 | void __init orion_uart3_init(void __iomem *membase, |
32 | resource_size_t mapbase, | 32 | resource_size_t mapbase, |
33 | unsigned int irq, | 33 | unsigned int irq, |
34 | struct clk *clk); | 34 | struct clk *clk); |