aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-kirkwood/common.c
diff options
context:
space:
mode:
authorRussell King <rmk@dyn-67.arm.linux.org.uk>2009-03-28 16:29:51 -0400
committerRussell King <rmk+kernel@arm.linux.org.uk>2009-03-28 16:29:51 -0400
commited40d0c472b136682b2fcba05f89762859c7374f (patch)
tree076b83a26bcd63d6158463735dd34c10bbc591dc /arch/arm/mach-kirkwood/common.c
parent9e495834e59ca9b29f1a1f63b9f5533bb022ac49 (diff)
parent5d80f8e5a9dc9c9a94d4aeaa567e219a808b8a4a (diff)
Merge branch 'origin' into devel
Conflicts: sound/soc/pxa/pxa2xx-i2s.c
Diffstat (limited to 'arch/arm/mach-kirkwood/common.c')
-rw-r--r--arch/arm/mach-kirkwood/common.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/arch/arm/mach-kirkwood/common.c b/arch/arm/mach-kirkwood/common.c
index 19b03f62c3f4..3d2fae846512 100644
--- a/arch/arm/mach-kirkwood/common.c
+++ b/arch/arm/mach-kirkwood/common.c
@@ -233,14 +233,17 @@ static struct platform_device kirkwood_switch_device = {
233 233
234void __init kirkwood_ge00_switch_init(struct dsa_platform_data *d, int irq) 234void __init kirkwood_ge00_switch_init(struct dsa_platform_data *d, int irq)
235{ 235{
236 int i;
237
236 if (irq != NO_IRQ) { 238 if (irq != NO_IRQ) {
237 kirkwood_switch_resources[0].start = irq; 239 kirkwood_switch_resources[0].start = irq;
238 kirkwood_switch_resources[0].end = irq; 240 kirkwood_switch_resources[0].end = irq;
239 kirkwood_switch_device.num_resources = 1; 241 kirkwood_switch_device.num_resources = 1;
240 } 242 }
241 243
242 d->mii_bus = &kirkwood_ge00_shared.dev;
243 d->netdev = &kirkwood_ge00.dev; 244 d->netdev = &kirkwood_ge00.dev;
245 for (i = 0; i < d->nr_chips; i++)
246 d->chip[i].mii_bus = &kirkwood_ge00_shared.dev;
244 kirkwood_switch_device.dev.platform_data = d; 247 kirkwood_switch_device.dev.platform_data = d;
245 248
246 platform_device_register(&kirkwood_switch_device); 249 platform_device_register(&kirkwood_switch_device);