[Patch v3 02/11] arch/microblaze/pci: Drop early_find_capability()

From: York Sun
Date: Thu Aug 04 2016 - 19:14:18 EST


This function is a copy from powerpc, and is never used on microblaze.

Signed-off-by: York Sun <york.sun@xxxxxxx>
Suggested-by: Bjorn Helgaas <helgaas@xxxxxxxxxx>

---
This patch has nothing to do with this EDAC patch set, but suggested by
Bjorn Helgaas as good code hygiene, along with patch 01/11 to expose
early_find_capability() for powerpc.

Change log
v3: new patch

arch/microblaze/include/asm/pci-bridge.h | 3 ---
arch/microblaze/pci/pci-common.c | 7 -------
2 files changed, 10 deletions(-)

diff --git a/arch/microblaze/include/asm/pci-bridge.h b/arch/microblaze/include/asm/pci-bridge.h
index cb5d397..a0f4a91 100644
--- a/arch/microblaze/include/asm/pci-bridge.h
+++ b/arch/microblaze/include/asm/pci-bridge.h
@@ -121,9 +121,6 @@ extern int early_write_config_word(struct pci_controller *hose, int bus,
extern int early_write_config_dword(struct pci_controller *hose, int bus,
int dev_fn, int where, u32 val);

-extern int early_find_capability(struct pci_controller *hose, int bus,
- int dev_fn, int cap);
-
extern void setup_indirect_pci(struct pci_controller *hose,
resource_size_t cfg_addr,
resource_size_t cfg_data, u32 flags);
diff --git a/arch/microblaze/pci/pci-common.c b/arch/microblaze/pci/pci-common.c
index 14cba60..2f4c79e 100644
--- a/arch/microblaze/pci/pci-common.c
+++ b/arch/microblaze/pci/pci-common.c
@@ -1461,10 +1461,3 @@ EARLY_PCI_OP(read, dword, u32 *)
EARLY_PCI_OP(write, byte, u8)
EARLY_PCI_OP(write, word, u16)
EARLY_PCI_OP(write, dword, u32)
-
-int early_find_capability(struct pci_controller *hose, int bus, int devfn,
- int cap)
-{
- return pci_bus_find_capability(fake_pci_bus(hose, bus), devfn, cap);
-}
-
--
2.7.4