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/sparc/kernel/of_device.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/sparc/kernel/of_device.c')
-rw-r--r-- | arch/sparc/kernel/of_device.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/sparc/kernel/of_device.c b/arch/sparc/kernel/of_device.c index 7176040caba0..36383f73d685 100644 --- a/arch/sparc/kernel/of_device.c +++ b/arch/sparc/kernel/of_device.c | |||
@@ -420,11 +420,16 @@ static struct of_device * __init scan_one_device(struct device_node *dp, | |||
420 | { | 420 | { |
421 | struct of_device *op = kzalloc(sizeof(*op), GFP_KERNEL); | 421 | struct of_device *op = kzalloc(sizeof(*op), GFP_KERNEL); |
422 | const struct linux_prom_irqs *intr; | 422 | const struct linux_prom_irqs *intr; |
423 | struct dev_archdata *sd; | ||
423 | int len, i; | 424 | int len, i; |
424 | 425 | ||
425 | if (!op) | 426 | if (!op) |
426 | return NULL; | 427 | return NULL; |
427 | 428 | ||
429 | sd = &op->dev.archdata; | ||
430 | sd->prom_node = dp; | ||
431 | sd->op = op; | ||
432 | |||
428 | op->node = dp; | 433 | op->node = dp; |
429 | 434 | ||
430 | op->clock_freq = of_getintprop_default(dp, "clock-frequency", | 435 | op->clock_freq = of_getintprop_default(dp, "clock-frequency", |