Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

sparc: Kill sbus_ioremap() and sbus_iounmap().

No more users.

Signed-off-by: David S. Miller <davem@davemloft.net>

-39
-8
arch/sparc/include/asm/io_32.h
··· 293 293 extern void pci_iounmap(struct pci_dev *dev, void __iomem *); 294 294 295 295 /* 296 - * Bus number may be in res->flags... somewhere. 297 - */ 298 - extern void __iomem *sbus_ioremap(struct resource *res, unsigned long offset, 299 - unsigned long size, char *name); 300 - extern void sbus_iounmap(volatile void __iomem *vaddr, unsigned long size); 301 - 302 - 303 - /* 304 296 * At the moment, we do not use CMOS_READ anywhere outside of rtc.c, 305 297 * so rtc_port is static in it. This should not change unless a new 306 298 * hardware pops up.
-13
arch/sparc/include/asm/io_64.h
··· 482 482 extern void __iomem *pci_iomap(struct pci_dev *dev, int bar, unsigned long max); 483 483 extern void pci_iounmap(struct pci_dev *dev, void __iomem *); 484 484 485 - /* Similarly for SBUS. */ 486 - #define sbus_ioremap(__res, __offset, __size, __name) \ 487 - ({ unsigned long __ret; \ 488 - __ret = (__res)->start + (((__res)->flags & 0x1ffUL) << 32UL); \ 489 - __ret += (unsigned long) (__offset); \ 490 - if (! request_region((__ret), (__size), (__name))) \ 491 - __ret = 0UL; \ 492 - (void __iomem *) __ret; \ 493 - }) 494 - 495 - #define sbus_iounmap(__addr, __size) \ 496 - release_region((unsigned long)(__addr), (__size)) 497 - 498 485 static inline int sbus_can_dma_64bit(void) 499 486 { 500 487 return 1;
-16
arch/sparc/kernel/ioport.c
··· 143 143 } 144 144 } 145 145 146 - /* 147 - */ 148 - void __iomem *sbus_ioremap(struct resource *phyres, unsigned long offset, 149 - unsigned long size, char *name) 150 - { 151 - return _sparc_alloc_io(phyres->flags & 0xF, 152 - phyres->start + offset, size, name); 153 - } 154 - 155 146 void __iomem *of_ioremap(struct resource *res, unsigned long offset, 156 147 unsigned long size, char *name) 157 148 { ··· 157 166 iounmap(base); 158 167 } 159 168 EXPORT_SYMBOL(of_iounmap); 160 - 161 - /* 162 - */ 163 - void sbus_iounmap(volatile void __iomem *addr, unsigned long size) 164 - { 165 - iounmap(addr); 166 - } 167 169 168 170 /* 169 171 * Meat of mapping
-2
arch/sparc/kernel/sparc_ksyms.c
··· 154 154 155 155 #ifdef CONFIG_SBUS 156 156 EXPORT_SYMBOL(sbus_set_sbus64); 157 - EXPORT_SYMBOL(sbus_iounmap); 158 - EXPORT_SYMBOL(sbus_ioremap); 159 157 #endif 160 158 #ifdef CONFIG_PCI 161 159 EXPORT_SYMBOL(ebus_chain);