diff options
Diffstat (limited to 'drivers/sbus/sbus.c')
-rw-r--r-- | drivers/sbus/sbus.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/drivers/sbus/sbus.c b/drivers/sbus/sbus.c index 89eb922a6acd..3b30f9995129 100644 --- a/drivers/sbus/sbus.c +++ b/drivers/sbus/sbus.c | |||
@@ -28,8 +28,6 @@ show_sbusobppath_attr(struct device * dev, struct device_attribute * attr, char | |||
28 | 28 | ||
29 | static DEVICE_ATTR(obppath, S_IRUSR | S_IRGRP | S_IROTH, show_sbusobppath_attr, NULL); | 29 | static DEVICE_ATTR(obppath, S_IRUSR | S_IRGRP | S_IROTH, show_sbusobppath_attr, NULL); |
30 | 30 | ||
31 | struct sbus_bus *sbus_root; | ||
32 | |||
33 | static void __init fill_sbus_device_iommu(struct sbus_dev *sdev) | 31 | static void __init fill_sbus_device_iommu(struct sbus_dev *sdev) |
34 | { | 32 | { |
35 | struct of_device *op = of_find_device_by_node(sdev->ofdev.node); | 33 | struct of_device *op = of_find_device_by_node(sdev->ofdev.node); |
@@ -78,17 +76,6 @@ static void __init fill_sbus_device(struct device_node *dp, struct sbus_dev *sde | |||
78 | fill_sbus_device_iommu(sdev); | 76 | fill_sbus_device_iommu(sdev); |
79 | } | 77 | } |
80 | 78 | ||
81 | /* We preserve the "probe order" of these bus and device lists to give | ||
82 | * the same ordering as the old code. | ||
83 | */ | ||
84 | static void __init sbus_insert(struct sbus_bus *sbus, struct sbus_bus **root) | ||
85 | { | ||
86 | while (*root) | ||
87 | root = &(*root)->next; | ||
88 | *root = sbus; | ||
89 | sbus->next = NULL; | ||
90 | } | ||
91 | |||
92 | static void __init sdev_insert(struct sbus_dev *sdev, struct sbus_dev **root) | 79 | static void __init sdev_insert(struct sbus_dev *sdev, struct sbus_dev **root) |
93 | { | 80 | { |
94 | while (*root) | 81 | while (*root) |
@@ -128,7 +115,6 @@ static void __init build_one_sbus(struct device_node *dp, int num_sbus) | |||
128 | if (!sbus) | 115 | if (!sbus) |
129 | return; | 116 | return; |
130 | 117 | ||
131 | sbus_insert(sbus, &sbus_root); | ||
132 | sbus->prom_node = dp->node; | 118 | sbus->prom_node = dp->node; |
133 | 119 | ||
134 | sbus_setup_iommu(sbus, dp); | 120 | sbus_setup_iommu(sbus, dp); |