diff options
author | David S. Miller <davem@sunset.davemloft.net> | 2007-07-19 01:03:25 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-07-20 20:13:42 -0400 |
commit | 3d6e470236bc759f43c9f2377899b526a50e2e63 (patch) | |
tree | 8d91788c5e88c46d1b37cc161e327a60d742f79e /arch/sparc64/kernel/ebus.c | |
parent | e865f3e6f4ef2d2617f5003c7c819ed15b5a511b (diff) |
[SPARC]: Make sure dev_archdata is filled in for all devices.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc64/kernel/ebus.c')
-rw-r--r-- | arch/sparc64/kernel/ebus.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/sparc64/kernel/ebus.c b/arch/sparc64/kernel/ebus.c index ad55a9bb50dd..6d2956179cde 100644 --- a/arch/sparc64/kernel/ebus.c +++ b/arch/sparc64/kernel/ebus.c | |||
@@ -362,6 +362,7 @@ static int __init child_regs_nonstandard(struct linux_ebus_device *dev) | |||
362 | static void __init fill_ebus_device(struct device_node *dp, struct linux_ebus_device *dev) | 362 | static void __init fill_ebus_device(struct device_node *dp, struct linux_ebus_device *dev) |
363 | { | 363 | { |
364 | struct linux_ebus_child *child; | 364 | struct linux_ebus_child *child; |
365 | struct dev_archdata *sd; | ||
365 | struct of_device *op; | 366 | struct of_device *op; |
366 | int i, len; | 367 | int i, len; |
367 | 368 | ||
@@ -387,6 +388,10 @@ static void __init fill_ebus_device(struct device_node *dp, struct linux_ebus_de | |||
387 | dev->irqs[i] = op->irqs[i]; | 388 | dev->irqs[i] = op->irqs[i]; |
388 | } | 389 | } |
389 | 390 | ||
391 | sd = &dev->ofdev.dev.archdata; | ||
392 | sd->prom_node = dp; | ||
393 | sd->op = &dev->ofdev; | ||
394 | |||
390 | dev->ofdev.node = dp; | 395 | dev->ofdev.node = dp; |
391 | dev->ofdev.dev.parent = &dev->bus->ofdev.dev; | 396 | dev->ofdev.dev.parent = &dev->bus->ofdev.dev; |
392 | dev->ofdev.dev.bus = &ebus_bus_type; | 397 | dev->ofdev.dev.bus = &ebus_bus_type; |