diff options
author | David S. Miller <davem@davemloft.net> | 2008-08-27 06:47:56 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-08-29 05:15:12 -0400 |
commit | 98261dd1a393777f4400d8ad5a29e97cb30e5422 (patch) | |
tree | 93a646fd06a116ce9507a0fb4989048c12c0f53c /arch/sparc | |
parent | 104364810ff5b0844a2183fbca989f70e86d486b (diff) |
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 'arch/sparc')
-rw-r--r-- | arch/sparc/include/asm/sbus_32.h | 13 | ||||
-rw-r--r-- | arch/sparc/include/asm/sbus_64.h | 13 | ||||
-rw-r--r-- | arch/sparc/kernel/sparc_ksyms.c | 1 |
3 files changed, 0 insertions, 27 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 | ||
68 | extern struct sbus_bus *sbus_root; | ||
69 | |||
70 | static inline int | 68 | static inline int |
71 | sbus_is_slave(struct sbus_dev *dev) | 69 | sbus_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. */ |
89 | void prom_adjust_ranges(struct linux_prom_ranges *, int, | 76 | void 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 | ||
69 | extern 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 | |||
82 | extern void sbus_setup_iommu(struct sbus_bus *, struct device_node *); | 69 | extern void sbus_setup_iommu(struct sbus_bus *, struct device_node *); |
83 | extern int sbus_arch_preinit(void); | 70 | extern int sbus_arch_preinit(void); |
84 | extern void sbus_arch_postinit(void); | 71 | extern 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)); | |||
153 | EXPORT_SYMBOL(BTFIXUP_CALL(pgprot_noncached)); | 153 | EXPORT_SYMBOL(BTFIXUP_CALL(pgprot_noncached)); |
154 | 154 | ||
155 | #ifdef CONFIG_SBUS | 155 | #ifdef CONFIG_SBUS |
156 | EXPORT_SYMBOL(sbus_root); | ||
157 | EXPORT_SYMBOL(sbus_set_sbus64); | 156 | EXPORT_SYMBOL(sbus_set_sbus64); |
158 | EXPORT_SYMBOL(sbus_iounmap); | 157 | EXPORT_SYMBOL(sbus_iounmap); |
159 | EXPORT_SYMBOL(sbus_ioremap); | 158 | EXPORT_SYMBOL(sbus_ioremap); |