diff options
author | Arnd Bergmann <arnd@arndb.de> | 2016-09-06 10:06:20 -0400 |
---|---|---|
committer | Gregory CLEMENT <gregory.clement@free-electrons.com> | 2016-09-14 10:35:37 -0400 |
commit | 7d619d8ae06e747c602034b0c681f0ff5d96f030 (patch) | |
tree | d7b954acc96ebc75eb59c384fe06da05b712c8c8 | |
parent | 29b4817d4018df78086157ea3a55c1d9424a7cfc (diff) |
ARM: mv78xx0: simplify ethernet device creation
Out of the four ethernet devices on mv78xx0, only the first one
has an error interrupt line, for the other ones we pass NO_IRQ
and then ignore the argument.
In order to get closer to complete remove of NO_IRQ, this simply
drops the unused function arguments.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
-rw-r--r-- | arch/arm/mach-mv78xx0/common.c | 9 | ||||
-rw-r--r-- | arch/arm/plat-orion/common.c | 7 | ||||
-rw-r--r-- | arch/arm/plat-orion/include/plat/common.h | 7 |
3 files changed, 6 insertions, 17 deletions
diff --git a/arch/arm/mach-mv78xx0/common.c b/arch/arm/mach-mv78xx0/common.c index 6af5430d0d97..f72e1e9f5fc5 100644 --- a/arch/arm/mach-mv78xx0/common.c +++ b/arch/arm/mach-mv78xx0/common.c | |||
@@ -219,7 +219,6 @@ void __init mv78xx0_ge01_init(struct mv643xx_eth_platform_data *eth_data) | |||
219 | { | 219 | { |
220 | orion_ge01_init(eth_data, | 220 | orion_ge01_init(eth_data, |
221 | GE01_PHYS_BASE, IRQ_MV78XX0_GE01_SUM, | 221 | GE01_PHYS_BASE, IRQ_MV78XX0_GE01_SUM, |
222 | NO_IRQ, | ||
223 | MV643XX_TX_CSUM_DEFAULT_LIMIT); | 222 | MV643XX_TX_CSUM_DEFAULT_LIMIT); |
224 | } | 223 | } |
225 | 224 | ||
@@ -242,9 +241,7 @@ void __init mv78xx0_ge10_init(struct mv643xx_eth_platform_data *eth_data) | |||
242 | eth_data->duplex = DUPLEX_FULL; | 241 | eth_data->duplex = DUPLEX_FULL; |
243 | } | 242 | } |
244 | 243 | ||
245 | orion_ge10_init(eth_data, | 244 | orion_ge10_init(eth_data, GE10_PHYS_BASE, IRQ_MV78XX0_GE10_SUM); |
246 | GE10_PHYS_BASE, IRQ_MV78XX0_GE10_SUM, | ||
247 | NO_IRQ); | ||
248 | } | 245 | } |
249 | 246 | ||
250 | 247 | ||
@@ -266,9 +263,7 @@ void __init mv78xx0_ge11_init(struct mv643xx_eth_platform_data *eth_data) | |||
266 | eth_data->duplex = DUPLEX_FULL; | 263 | eth_data->duplex = DUPLEX_FULL; |
267 | } | 264 | } |
268 | 265 | ||
269 | orion_ge11_init(eth_data, | 266 | orion_ge11_init(eth_data, GE11_PHYS_BASE, IRQ_MV78XX0_GE11_SUM); |
270 | GE11_PHYS_BASE, IRQ_MV78XX0_GE11_SUM, | ||
271 | NO_IRQ); | ||
272 | } | 267 | } |
273 | 268 | ||
274 | /***************************************************************************** | 269 | /***************************************************************************** |
diff --git a/arch/arm/plat-orion/common.c b/arch/arm/plat-orion/common.c index 78c8bf4043c0..7757f71fe709 100644 --- a/arch/arm/plat-orion/common.c +++ b/arch/arm/plat-orion/common.c | |||
@@ -354,7 +354,6 @@ static struct platform_device orion_ge01 = { | |||
354 | void __init orion_ge01_init(struct mv643xx_eth_platform_data *eth_data, | 354 | void __init orion_ge01_init(struct mv643xx_eth_platform_data *eth_data, |
355 | unsigned long mapbase, | 355 | unsigned long mapbase, |
356 | unsigned long irq, | 356 | unsigned long irq, |
357 | unsigned long irq_err, | ||
358 | unsigned int tx_csum_limit) | 357 | unsigned int tx_csum_limit) |
359 | { | 358 | { |
360 | fill_resources(&orion_ge01_shared, orion_ge01_shared_resources, | 359 | fill_resources(&orion_ge01_shared, orion_ge01_shared_resources, |
@@ -404,8 +403,7 @@ static struct platform_device orion_ge10 = { | |||
404 | 403 | ||
405 | void __init orion_ge10_init(struct mv643xx_eth_platform_data *eth_data, | 404 | void __init orion_ge10_init(struct mv643xx_eth_platform_data *eth_data, |
406 | unsigned long mapbase, | 405 | unsigned long mapbase, |
407 | unsigned long irq, | 406 | unsigned long irq) |
408 | unsigned long irq_err) | ||
409 | { | 407 | { |
410 | fill_resources(&orion_ge10_shared, orion_ge10_shared_resources, | 408 | fill_resources(&orion_ge10_shared, orion_ge10_shared_resources, |
411 | mapbase + 0x2000, SZ_16K - 1, NO_IRQ); | 409 | mapbase + 0x2000, SZ_16K - 1, NO_IRQ); |
@@ -453,8 +451,7 @@ static struct platform_device orion_ge11 = { | |||
453 | 451 | ||
454 | void __init orion_ge11_init(struct mv643xx_eth_platform_data *eth_data, | 452 | void __init orion_ge11_init(struct mv643xx_eth_platform_data *eth_data, |
455 | unsigned long mapbase, | 453 | unsigned long mapbase, |
456 | unsigned long irq, | 454 | unsigned long irq) |
457 | unsigned long irq_err) | ||
458 | { | 455 | { |
459 | fill_resources(&orion_ge11_shared, orion_ge11_shared_resources, | 456 | fill_resources(&orion_ge11_shared, orion_ge11_shared_resources, |
460 | mapbase + 0x2000, SZ_16K - 1, NO_IRQ); | 457 | mapbase + 0x2000, SZ_16K - 1, NO_IRQ); |
diff --git a/arch/arm/plat-orion/include/plat/common.h b/arch/arm/plat-orion/include/plat/common.h index 9e6d76ad48a9..8519727faa5e 100644 --- a/arch/arm/plat-orion/include/plat/common.h +++ b/arch/arm/plat-orion/include/plat/common.h | |||
@@ -47,18 +47,15 @@ void __init orion_ge00_init(struct mv643xx_eth_platform_data *eth_data, | |||
47 | void __init orion_ge01_init(struct mv643xx_eth_platform_data *eth_data, | 47 | void __init orion_ge01_init(struct mv643xx_eth_platform_data *eth_data, |
48 | unsigned long mapbase, | 48 | unsigned long mapbase, |
49 | unsigned long irq, | 49 | unsigned long irq, |
50 | unsigned long irq_err, | ||
51 | unsigned int tx_csum_limit); | 50 | unsigned int tx_csum_limit); |
52 | 51 | ||
53 | void __init orion_ge10_init(struct mv643xx_eth_platform_data *eth_data, | 52 | void __init orion_ge10_init(struct mv643xx_eth_platform_data *eth_data, |
54 | unsigned long mapbase, | 53 | unsigned long mapbase, |
55 | unsigned long irq, | 54 | unsigned long irq); |
56 | unsigned long irq_err); | ||
57 | 55 | ||
58 | void __init orion_ge11_init(struct mv643xx_eth_platform_data *eth_data, | 56 | void __init orion_ge11_init(struct mv643xx_eth_platform_data *eth_data, |
59 | unsigned long mapbase, | 57 | unsigned long mapbase, |
60 | unsigned long irq, | 58 | unsigned long irq); |
61 | unsigned long irq_err); | ||
62 | 59 | ||
63 | void __init orion_ge00_switch_init(struct dsa_platform_data *d, | 60 | void __init orion_ge00_switch_init(struct dsa_platform_data *d, |
64 | int irq); | 61 | int irq); |