Commit d5269966 authored by Kumar Gala's avatar Kumar Gala

[POWERPC] Removed setup_indirect_pci_nomap

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: default avatarKumar Gala <galak@kernel.crashing.org>
parent 4e798211
...@@ -148,25 +148,16 @@ static struct pci_ops indirect_pci_ops = ...@@ -148,25 +148,16 @@ static struct pci_ops indirect_pci_ops =
indirect_write_config 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 void __init
setup_indirect_pci(struct pci_controller* hose, u32 cfg_addr, u32 cfg_data) setup_indirect_pci(struct pci_controller* hose, u32 cfg_addr, u32 cfg_data)
{ {
unsigned long base = cfg_addr & PAGE_MASK; unsigned long base = cfg_addr & PAGE_MASK;
void __iomem *mbase, *addr, *data; void __iomem *mbase;
mbase = ioremap(base, PAGE_SIZE); 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) if ((cfg_data & PAGE_MASK) != base)
mbase = ioremap(cfg_data & PAGE_MASK, PAGE_SIZE); mbase = ioremap(cfg_data & PAGE_MASK, PAGE_SIZE);
data = mbase + (cfg_data & ~PAGE_MASK); hose->cfg_data = mbase + (cfg_data & ~PAGE_MASK);
setup_indirect_pci_nomap(hose, addr, data); hose->ops = &indirect_pci_ops;
} }
...@@ -87,8 +87,6 @@ int early_write_config_dword(struct pci_controller *hose, int bus, int dev_fn, ...@@ -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, extern int early_find_capability(struct pci_controller *hose, int bus,
int dev_fn, int cap); 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, extern void setup_indirect_pci(struct pci_controller* hose,
u32 cfg_addr, u32 cfg_data); u32 cfg_addr, u32 cfg_data);
extern void setup_grackle(struct pci_controller *hose); extern void setup_grackle(struct pci_controller *hose);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment