Skip to content

Commit d526996

Browse files
committed
[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: Kumar Gala <galak@kernel.crashing.org>
1 parent 4e79821 commit d526996

2 files changed

Lines changed: 4 additions & 15 deletions

File tree

‎arch/powerpc/sysdev/indirect_pci.c‎

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -148,25 +148,16 @@ static struct pci_ops indirect_pci_ops =
148148
indirect_write_config
149149
};
150150

151-
void __init
152-
setup_indirect_pci_nomap(struct pci_controller* hose, void __iomem * cfg_addr,
153-
void __iomem * cfg_data)
154-
{
155-
hose->cfg_addr = cfg_addr;
156-
hose->cfg_data = cfg_data;
157-
hose->ops = &indirect_pci_ops;
158-
}
159-
160151
void __init
161152
setup_indirect_pci(struct pci_controller* hose, u32 cfg_addr, u32 cfg_data)
162153
{
163154
unsigned long base = cfg_addr & PAGE_MASK;
164-
void __iomem *mbase, *addr, *data;
155+
void __iomem *mbase;
165156

166157
mbase = ioremap(base, PAGE_SIZE);
167-
addr = mbase + (cfg_addr & ~PAGE_MASK);
158+
hose->cfg_addr = mbase + (cfg_addr & ~PAGE_MASK);
168159
if ((cfg_data & PAGE_MASK) != base)
169160
mbase = ioremap(cfg_data & PAGE_MASK, PAGE_SIZE);
170-
data = mbase + (cfg_data & ~PAGE_MASK);
171-
setup_indirect_pci_nomap(hose, addr, data);
161+
hose->cfg_data = mbase + (cfg_data & ~PAGE_MASK);
162+
hose->ops = &indirect_pci_ops;
172163
}

‎include/asm-powerpc/pci-bridge.h‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,6 @@ int early_write_config_dword(struct pci_controller *hose, int bus, int dev_fn,
8787
extern int early_find_capability(struct pci_controller *hose, int bus,
8888
int dev_fn, int cap);
8989

90-
extern void setup_indirect_pci_nomap(struct pci_controller* hose,
91-
void __iomem *cfg_addr, void __iomem *cfg_data);
9290
extern void setup_indirect_pci(struct pci_controller* hose,
9391
u32 cfg_addr, u32 cfg_data);
9492
extern void setup_grackle(struct pci_controller *hose);

0 commit comments

Comments
 (0)