diff options
Diffstat (limited to 'arch/arm/mach-orion5x/common.c')
-rw-r--r-- | arch/arm/mach-orion5x/common.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/arch/arm/mach-orion5x/common.c b/arch/arm/mach-orion5x/common.c index 0a623379789f..a4ecf625981e 100644 --- a/arch/arm/mach-orion5x/common.c +++ b/arch/arm/mach-orion5x/common.c | |||
@@ -219,14 +219,17 @@ static struct platform_device orion5x_switch_device = { | |||
219 | 219 | ||
220 | void __init orion5x_eth_switch_init(struct dsa_platform_data *d, int irq) | 220 | void __init orion5x_eth_switch_init(struct dsa_platform_data *d, int irq) |
221 | { | 221 | { |
222 | int i; | ||
223 | |||
222 | if (irq != NO_IRQ) { | 224 | if (irq != NO_IRQ) { |
223 | orion5x_switch_resources[0].start = irq; | 225 | orion5x_switch_resources[0].start = irq; |
224 | orion5x_switch_resources[0].end = irq; | 226 | orion5x_switch_resources[0].end = irq; |
225 | orion5x_switch_device.num_resources = 1; | 227 | orion5x_switch_device.num_resources = 1; |
226 | } | 228 | } |
227 | 229 | ||
228 | d->mii_bus = &orion5x_eth_shared.dev; | ||
229 | d->netdev = &orion5x_eth.dev; | 230 | d->netdev = &orion5x_eth.dev; |
231 | for (i = 0; i < d->nr_chips; i++) | ||
232 | d->chip[i].mii_bus = &orion5x_eth_shared.dev; | ||
230 | orion5x_switch_device.dev.platform_data = d; | 233 | orion5x_switch_device.dev.platform_data = d; |
231 | 234 | ||
232 | platform_device_register(&orion5x_switch_device); | 235 | platform_device_register(&orion5x_switch_device); |