diff options
author | David S. Miller <davem@sunset.davemloft.net> | 2007-07-18 22:03:25 -0700 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-07-20 17:13:42 -0700 |
commit | 3d6e470236bc759f43c9f2377899b526a50e2e63 (patch) | |
tree | 8d91788c5e88c46d1b37cc161e327a60d742f79e /arch/sparc/kernel/ebus.c | |
parent | e865f3e6f4ef2d2617f5003c7c819ed15b5a511b (diff) | |
download | kernel_samsung_smdk4412-3d6e470236bc759f43c9f2377899b526a50e2e63.zip kernel_samsung_smdk4412-3d6e470236bc759f43c9f2377899b526a50e2e63.tar.gz kernel_samsung_smdk4412-3d6e470236bc759f43c9f2377899b526a50e2e63.tar.bz2 |
[SPARC]: Make sure dev_archdata is filled in for all devices.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc/kernel/ebus.c')
-rw-r--r-- | arch/sparc/kernel/ebus.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/sparc/kernel/ebus.c b/arch/sparc/kernel/ebus.c index 7bb86b9..ac352eb 100644 --- a/arch/sparc/kernel/ebus.c +++ b/arch/sparc/kernel/ebus.c @@ -148,6 +148,7 @@ void __init fill_ebus_device(struct device_node *dp, struct linux_ebus_device *d { const struct linux_prom_registers *regs; struct linux_ebus_child *child; + struct dev_archdata *sd; const int *irqs; int i, n, len; unsigned long baseaddr; @@ -234,6 +235,10 @@ void __init fill_ebus_device(struct device_node *dp, struct linux_ebus_device *d } } + sd = &dev->ofdev.dev.archdata; + sd->prom_node = dp; + sd->op = &dev->ofdev; + dev->ofdev.node = dp; dev->ofdev.dev.parent = &dev->bus->ofdev.dev; dev->ofdev.dev.bus = &ebus_bus_type; |