]> Pileus Git - ~andy/linux/commitdiff
sparc: Kill sbus_ioremap() and sbus_iounmap().
authorDavid S. Miller <davem@davemloft.net>
Wed, 27 Aug 2008 11:11:16 +0000 (04:11 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 29 Aug 2008 09:15:13 +0000 (02:15 -0700)
No more users.

Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc/include/asm/io_32.h
arch/sparc/include/asm/io_64.h
arch/sparc/kernel/ioport.c
arch/sparc/kernel/sparc_ksyms.c

index 3ab3164bd73502138ebf1c9070406aa2a370ebb1..93fe21e02c86b0c7607f06c813532223220a68cf 100644 (file)
@@ -292,14 +292,6 @@ struct pci_dev;
 extern void __iomem *pci_iomap(struct pci_dev *dev, int bar, unsigned long max);
 extern void pci_iounmap(struct pci_dev *dev, void __iomem *);
 
-/*
- * Bus number may be in res->flags... somewhere.
- */
-extern void __iomem *sbus_ioremap(struct resource *res, unsigned long offset,
-    unsigned long size, char *name);
-extern void sbus_iounmap(volatile void __iomem *vaddr, unsigned long size);
-
-
 /*
  * At the moment, we do not use CMOS_READ anywhere outside of rtc.c,
  * so rtc_port is static in it. This should not change unless a new
index 73a9c5d41954b4f1c2695de9b05eaea70d66f9c6..4aee21dc9c6f10d8f6d0f908177f7c56f5095c72 100644 (file)
@@ -482,19 +482,6 @@ struct pci_dev;
 extern void __iomem *pci_iomap(struct pci_dev *dev, int bar, unsigned long max);
 extern void pci_iounmap(struct pci_dev *dev, void __iomem *);
 
-/* Similarly for SBUS. */
-#define sbus_ioremap(__res, __offset, __size, __name) \
-({     unsigned long __ret; \
-       __ret  = (__res)->start + (((__res)->flags & 0x1ffUL) << 32UL); \
-       __ret += (unsigned long) (__offset); \
-       if (! request_region((__ret), (__size), (__name))) \
-               __ret = 0UL; \
-       (void __iomem *) __ret; \
-})
-
-#define sbus_iounmap(__addr, __size)   \
-       release_region((unsigned long)(__addr), (__size))
-
 static inline int sbus_can_dma_64bit(void)
 {
        return 1;
index d82a810564ba292c0dbb83163ec3010f17bcf39d..e6177dde103ba1c6fca2b82f6ae77fd62a2e5025 100644 (file)
@@ -143,15 +143,6 @@ void iounmap(volatile void __iomem *virtual)
        }
 }
 
-/*
- */
-void __iomem *sbus_ioremap(struct resource *phyres, unsigned long offset,
-    unsigned long size, char *name)
-{
-       return _sparc_alloc_io(phyres->flags & 0xF,
-           phyres->start + offset, size, name);
-}
-
 void __iomem *of_ioremap(struct resource *res, unsigned long offset,
                         unsigned long size, char *name)
 {
@@ -167,13 +158,6 @@ void of_iounmap(struct resource *res, void __iomem *base, unsigned long size)
 }
 EXPORT_SYMBOL(of_iounmap);
 
-/*
- */
-void sbus_iounmap(volatile void __iomem *addr, unsigned long size)
-{
-       iounmap(addr);
-}
-
 /*
  * Meat of mapping
  */
index 84aaac4359443a944f4800f34874b409317be844..f2722ee3967d5020827875b4dc865fd4d922545b 100644 (file)
@@ -154,8 +154,6 @@ EXPORT_SYMBOL(BTFIXUP_CALL(pgprot_noncached));
 
 #ifdef CONFIG_SBUS
 EXPORT_SYMBOL(sbus_set_sbus64);
-EXPORT_SYMBOL(sbus_iounmap);
-EXPORT_SYMBOL(sbus_ioremap);
 #endif
 #ifdef CONFIG_PCI
 EXPORT_SYMBOL(ebus_chain);