arch: mips: pci: pci-ip27.c: Remove unused function
authorRickard Strandqvist <rickard_strandqvist@spectrumdigital.se>
Thu, 1 Jan 2015 15:32:06 +0000 (16:32 +0100)
committerPaul Burton <paul.burton@mips.com>
Sun, 24 Jun 2018 16:27:27 +0000 (09:27 -0700)
Remove the function pci_enable_swapping() that is not used anywhere.

This was partially found by using a static code analysis program called cppcheck.

Signed-off-by: Rickard Strandqvist <rickard_strandqvist@spectrumdigital.se>
Patchwork: https://patchwork.linux-mips.org/patch/8867/
Signed-off-by: Paul Burton <paul.burton@mips.com>
Cc: John Crispin <blogic@openwrt.org>
Cc: linux-mips@linux-mips.org
Cc: linux-kernel@vger.kernel.org
arch/mips/pci/pci-ip27.c

index 65b48d41a22962dfacda0a1ee288ce23869fbf20..c94a66070a60d9339570b94ff51dddc0a49ce138 100644 (file)
@@ -214,17 +214,6 @@ static inline void pci_disable_swapping(struct pci_dev *dev)
        bridge->b_widget.w_tflush;      /* Flush */
 }
 
-static inline void pci_enable_swapping(struct pci_dev *dev)
-{
-       struct bridge_controller *bc = BRIDGE_CONTROLLER(dev->bus);
-       bridge_t *bridge = bc->base;
-       int slot = PCI_SLOT(dev->devfn);
-
-       /* Turn on byte swapping */
-       bridge->b_device[slot].reg |= BRIDGE_DEV_SWAP_DIR;
-       bridge->b_widget.w_tflush;      /* Flush */
-}
-
 static void pci_fixup_ioc3(struct pci_dev *d)
 {
        pci_disable_swapping(d);