aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/sparc/include/asm/sbus_32.h13
-rw-r--r--arch/sparc/include/asm/sbus_64.h13
-rw-r--r--arch/sparc/kernel/sparc_ksyms.c1
-rw-r--r--arch/sparc64/kernel/sparc64_ksyms.c1
-rw-r--r--drivers/sbus/sbus.c14
5 files changed, 0 insertions, 42 deletions
diff --git a/arch/sparc/include/asm/sbus_32.h b/arch/sparc/include/asm/sbus_32.h
index 8f5900baca32..9f35ae870b59 100644
--- a/arch/sparc/include/asm/sbus_32.h
+++ b/arch/sparc/include/asm/sbus_32.h
@@ -65,8 +65,6 @@ struct sbus_bus {
65}; 65};
66#define to_sbus(d) container_of(d, struct sbus_bus, ofdev.dev) 66#define to_sbus(d) container_of(d, struct sbus_bus, ofdev.dev)
67 67
68extern struct sbus_bus *sbus_root;
69
70static inline int 68static inline int
71sbus_is_slave(struct sbus_dev *dev) 69sbus_is_slave(struct sbus_dev *dev)
72{ 70{
@@ -74,17 +72,6 @@ sbus_is_slave(struct sbus_dev *dev)
74 return 0; 72 return 0;
75} 73}
76 74
77/* Device probing routines could find these handy */
78#define for_each_sbus(bus) \
79 for((bus) = sbus_root; (bus); (bus)=(bus)->next)
80
81#define for_each_sbusdev(device, bus) \
82 for((device) = (bus)->devices; (device); (device)=(device)->next)
83
84#define for_all_sbusdev(device, bus) \
85 for ((bus) = sbus_root; (bus); (bus) = (bus)->next) \
86 for ((device) = (bus)->devices; (device); (device) = (device)->next)
87
88/* These yield IOMMU mappings in consistent mode. */ 75/* These yield IOMMU mappings in consistent mode. */
89void prom_adjust_ranges(struct linux_prom_ranges *, int, 76void prom_adjust_ranges(struct linux_prom_ranges *, int,
90 struct linux_prom_ranges *, int); 77 struct linux_prom_ranges *, int);
diff --git a/arch/sparc/include/asm/sbus_64.h b/arch/sparc/include/asm/sbus_64.h
index 75f95ff6d01c..ec3509a3d974 100644
--- a/arch/sparc/include/asm/sbus_64.h
+++ b/arch/sparc/include/asm/sbus_64.h
@@ -66,19 +66,6 @@ struct sbus_bus {
66}; 66};
67#define to_sbus(d) container_of(d, struct sbus_bus, ofdev.dev) 67#define to_sbus(d) container_of(d, struct sbus_bus, ofdev.dev)
68 68
69extern struct sbus_bus *sbus_root;
70
71/* Device probing routines could find these handy */
72#define for_each_sbus(bus) \
73 for((bus) = sbus_root; (bus); (bus)=(bus)->next)
74
75#define for_each_sbusdev(device, bus) \
76 for((device) = (bus)->devices; (device); (device)=(device)->next)
77
78#define for_all_sbusdev(device, bus) \
79 for ((bus) = sbus_root; (bus); (bus) = (bus)->next) \
80 for ((device) = (bus)->devices; (device); (device) = (device)->next)
81
82extern void sbus_setup_iommu(struct sbus_bus *, struct device_node *); 69extern void sbus_setup_iommu(struct sbus_bus *, struct device_node *);
83extern int sbus_arch_preinit(void); 70extern int sbus_arch_preinit(void);
84extern void sbus_arch_postinit(void); 71extern void sbus_arch_postinit(void);
diff --git a/arch/sparc/kernel/sparc_ksyms.c b/arch/sparc/kernel/sparc_ksyms.c
index b1d2c975b32c..84aaac435944 100644
--- a/arch/sparc/kernel/sparc_ksyms.c
+++ b/arch/sparc/kernel/sparc_ksyms.c
@@ -153,7 +153,6 @@ EXPORT_SYMBOL(BTFIXUP_CALL(mmu_release_scsi_one));
153EXPORT_SYMBOL(BTFIXUP_CALL(pgprot_noncached)); 153EXPORT_SYMBOL(BTFIXUP_CALL(pgprot_noncached));
154 154
155#ifdef CONFIG_SBUS 155#ifdef CONFIG_SBUS
156EXPORT_SYMBOL(sbus_root);
157EXPORT_SYMBOL(sbus_set_sbus64); 156EXPORT_SYMBOL(sbus_set_sbus64);
158EXPORT_SYMBOL(sbus_iounmap); 157EXPORT_SYMBOL(sbus_iounmap);
159EXPORT_SYMBOL(sbus_ioremap); 158EXPORT_SYMBOL(sbus_ioremap);
diff --git a/arch/sparc64/kernel/sparc64_ksyms.c b/arch/sparc64/kernel/sparc64_ksyms.c
index 901c26437b61..08c58a8457bc 100644
--- a/arch/sparc64/kernel/sparc64_ksyms.c
+++ b/arch/sparc64/kernel/sparc64_ksyms.c
@@ -160,7 +160,6 @@ EXPORT_SYMBOL(auxio_set_led);
160EXPORT_SYMBOL(auxio_set_lte); 160EXPORT_SYMBOL(auxio_set_lte);
161#endif 161#endif
162#ifdef CONFIG_SBUS 162#ifdef CONFIG_SBUS
163EXPORT_SYMBOL(sbus_root);
164EXPORT_SYMBOL(sbus_set_sbus64); 163EXPORT_SYMBOL(sbus_set_sbus64);
165#endif 164#endif
166EXPORT_SYMBOL(outsb); 165EXPORT_SYMBOL(outsb);
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
29static DEVICE_ATTR(obppath, S_IRUSR | S_IRGRP | S_IROTH, show_sbusobppath_attr, NULL); 29static DEVICE_ATTR(obppath, S_IRUSR | S_IRGRP | S_IROTH, show_sbusobppath_attr, NULL);
30 30
31struct sbus_bus *sbus_root;
32
33static void __init fill_sbus_device_iommu(struct sbus_dev *sdev) 31static 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 */
84static 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
92static void __init sdev_insert(struct sbus_dev *sdev, struct sbus_dev **root) 79static 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);