aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorDavid S. Miller <davem@sunset.davemloft.net>2007-07-19 01:03:25 -0400
committerDavid S. Miller <davem@sunset.davemloft.net>2007-07-20 20:13:42 -0400
commit3d6e470236bc759f43c9f2377899b526a50e2e63 (patch)
tree8d91788c5e88c46d1b37cc161e327a60d742f79e /drivers
parente865f3e6f4ef2d2617f5003c7c819ed15b5a511b (diff)
[SPARC]: Make sure dev_archdata is filled in for all devices.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/sbus/sbus.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/sbus/sbus.c b/drivers/sbus/sbus.c
index 002643392d42..2553629ec15d 100644
--- a/drivers/sbus/sbus.c
+++ b/drivers/sbus/sbus.c
@@ -33,6 +33,7 @@ struct sbus_bus *sbus_root;
33 33
34static void __init fill_sbus_device(struct device_node *dp, struct sbus_dev *sdev) 34static void __init fill_sbus_device(struct device_node *dp, struct sbus_dev *sdev)
35{ 35{
36 struct dev_archdata *sd;
36 unsigned long base; 37 unsigned long base;
37 const void *pval; 38 const void *pval;
38 int len, err; 39 int len, err;
@@ -67,6 +68,10 @@ static void __init fill_sbus_device(struct device_node *dp, struct sbus_dev *sde
67 68
68 sbus_fill_device_irq(sdev); 69 sbus_fill_device_irq(sdev);
69 70
71 sd = &sdev->ofdev.dev.archdata;
72 sd->prom_node = dp;
73 sd->op = &sdev->ofdev;
74
70 sdev->ofdev.node = dp; 75 sdev->ofdev.node = dp;
71 if (sdev->parent) 76 if (sdev->parent)
72 sdev->ofdev.dev.parent = &sdev->parent->ofdev.dev; 77 sdev->ofdev.dev.parent = &sdev->parent->ofdev.dev;