summaryrefslogtreecommitdiffstats
path: root/drivers/sbus/sbus.c
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2008-08-27 12:47:56 +0200
committerDavid S. Miller <davem@davemloft.net>2008-08-29 11:15:12 +0200
commit98261dd1a393777f4400d8ad5a29e97cb30e5422 (patch)
tree93a646fd06a116ce9507a0fb4989048c12c0f53c /drivers/sbus/sbus.c
parentsparc: Remove SBUS layer resource and irq handling. (diff)
downloadlinux-98261dd1a393777f4400d8ad5a29e97cb30e5422.tar.xz
linux-98261dd1a393777f4400d8ad5a29e97cb30e5422.zip
sparc: Remove dinky old-style SBUS probing facilities.
No drivers or code uses this stuff any more, every driver has been converted over to OF device probing. Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
-rw-r--r--drivers/sbus/sbus.c14
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
static DEVICE_ATTR(obppath, S_IRUSR | S_IRGRP | S_IROTH, show_sbusobppath_attr, NULL);
-struct sbus_bus *sbus_root;
-
static void __init fill_sbus_device_iommu(struct sbus_dev *sdev)
{
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
fill_sbus_device_iommu(sdev);
}
-/* We preserve the "probe order" of these bus and device lists to give
- * the same ordering as the old code.
- */
-static void __init sbus_insert(struct sbus_bus *sbus, struct sbus_bus **root)
-{
- while (*root)
- root = &(*root)->next;
- *root = sbus;
- sbus->next = NULL;
-}
-
static void __init sdev_insert(struct sbus_dev *sdev, struct sbus_dev **root)
{
while (*root)
@@ -128,7 +115,6 @@ static void __init build_one_sbus(struct device_node *dp, int num_sbus)
if (!sbus)
return;
- sbus_insert(sbus, &sbus_root);
sbus->prom_node = dp->node;
sbus_setup_iommu(sbus, dp);