]> err.no Git - linux-2.6/commitdiff
[POWERPC] Removed setup_indirect_pci_nomap
authorKumar Gala <galak@kernel.crashing.org>
Thu, 19 Jul 2007 20:44:52 +0000 (15:44 -0500)
committerKumar Gala <galak@kernel.crashing.org>
Mon, 23 Jul 2007 15:27:08 +0000 (10:27 -0500)
We don't use setup_indirect_pci_nomap in arch/powerpc and it appears
the users that needed it from arch/ppc are now using setup_indirect_pci.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
arch/powerpc/sysdev/indirect_pci.c
include/asm-powerpc/pci-bridge.h

index bc5b4e22fa5d16c74ae2006f6dd0abc9addb60cd..ad341f5ff94f56ac552e9d5c4ab1b9945cf43025 100644 (file)
@@ -148,25 +148,16 @@ static struct pci_ops indirect_pci_ops =
        indirect_write_config
 };
 
-void __init
-setup_indirect_pci_nomap(struct pci_controller* hose, void __iomem * cfg_addr,
-       void __iomem * cfg_data)
-{
-       hose->cfg_addr = cfg_addr;
-       hose->cfg_data = cfg_data;
-       hose->ops = &indirect_pci_ops;
-}
-
 void __init
 setup_indirect_pci(struct pci_controller* hose, u32 cfg_addr, u32 cfg_data)
 {
        unsigned long base = cfg_addr & PAGE_MASK;
-       void __iomem *mbase, *addr, *data;
+       void __iomem *mbase;
 
        mbase = ioremap(base, PAGE_SIZE);
-       addr = mbase + (cfg_addr & ~PAGE_MASK);
+       hose->cfg_addr = mbase + (cfg_addr & ~PAGE_MASK);
        if ((cfg_data & PAGE_MASK) != base)
                mbase = ioremap(cfg_data & PAGE_MASK, PAGE_SIZE);
-       data = mbase + (cfg_data & ~PAGE_MASK);
-       setup_indirect_pci_nomap(hose, addr, data);
+       hose->cfg_data = mbase + (cfg_data & ~PAGE_MASK);
+       hose->ops = &indirect_pci_ops;
 }
index 975435743031b0ac7f57efac3c02a4d904987d6f..13cb0a9734789d2cd3f6352cdea49778576f8c6d 100644 (file)
@@ -87,8 +87,6 @@ int early_write_config_dword(struct pci_controller *hose, int bus, int dev_fn,
 extern int early_find_capability(struct pci_controller *hose, int bus,
                                 int dev_fn, int cap);
 
-extern void setup_indirect_pci_nomap(struct pci_controller* hose,
-                              void __iomem *cfg_addr, void __iomem *cfg_data);
 extern void setup_indirect_pci(struct pci_controller* hose,
                               u32 cfg_addr, u32 cfg_data);
 extern void setup_grackle(struct pci_controller *hose);