sparc: Remove dinky old-style SBUS probing facilities.
[firefly-linux-kernel-4.4.55.git] / arch / sparc / include / asm / sbus_32.h
index 81ea0f687b18b8f45caca151d7802f4419d9e8d3..9f35ae870b596e002cb6b634d97d120a4842f535 100644 (file)
@@ -51,17 +51,6 @@ struct sbus_dev {
        int prom_node;
        char prom_name[64];
        int slot;
-
-       struct resource resource[PROMREG_MAX];
-
-       struct linux_prom_registers reg_addrs[PROMREG_MAX];
-       int num_registers;
-
-       struct linux_prom_ranges device_ranges[PROMREG_MAX];
-       int num_device_ranges;
-
-       unsigned int irqs[4];
-       int num_irqs;
 };
 #define to_sbus_device(d) container_of(d, struct sbus_dev, ofdev.dev)
 
@@ -73,14 +62,9 @@ struct sbus_bus {
        int                     prom_node;      /* PROM device tree node for this SBus */
        char                    prom_name[64];  /* Usually "sbus" or "sbi" */
        int                     clock_freq;
-
-       struct linux_prom_ranges sbus_ranges[PROMREG_MAX];
-       int num_sbus_ranges;
 };
 #define to_sbus(d) container_of(d, struct sbus_bus, ofdev.dev)
 
-extern struct sbus_bus *sbus_root;
-
 static inline int
 sbus_is_slave(struct sbus_dev *dev)
 {
@@ -88,22 +72,10 @@ sbus_is_slave(struct sbus_dev *dev)
        return 0;
 }
 
-/* Device probing routines could find these handy */
-#define for_each_sbus(bus) \
-        for((bus) = sbus_root; (bus); (bus)=(bus)->next)
-
-#define for_each_sbusdev(device, bus) \
-        for((device) = (bus)->devices; (device); (device)=(device)->next)
-
-#define for_all_sbusdev(device, bus) \
-       for ((bus) = sbus_root; (bus); (bus) = (bus)->next) \
-               for ((device) = (bus)->devices; (device); (device) = (device)->next)
-
 /* These yield IOMMU mappings in consistent mode. */
 void prom_adjust_ranges(struct linux_prom_ranges *, int,
                        struct linux_prom_ranges *, int);
 
-extern void sbus_arch_bus_ranges_init(struct device_node *, struct sbus_bus *);
 extern void sbus_setup_iommu(struct sbus_bus *, struct device_node *);
 extern int sbus_arch_preinit(void);
 extern void sbus_arch_postinit(void);