Skip to content

Commit 075dd2e

Browse files
ij-inteltsbogend
authored andcommitted
MIPS: lantiq: Remove unused function pointer variables
Ever since introduction in the commit e47d488 ("MIPS: Lantiq: Add PCI controller support.") ltqpci_plat_dev_init has been unused. In 57c8cb8 ("MIPS: pci: convert lantiq driver to OF") also ltq_pci_plat_arch_init was introduced. With those commit being more than 10 years ago, it seem neither is going to get used anytime soon. Thus, remove both unused function pointer variables. Signed-off-by: Ilpo Järvinen <[email protected]> Reviewed-by: Sergio Paracuellos <[email protected]> Signed-off-by: Thomas Bogendoerfer <[email protected]>
1 parent eac95d5 commit 075dd2e

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

arch/mips/pci/fixup-lantiq.c

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,8 @@
77
#include <linux/of_pci.h>
88
#include <linux/pci.h>
99

10-
int (*ltq_pci_plat_arch_init)(struct pci_dev *dev) = NULL;
11-
int (*ltq_pci_plat_dev_init)(struct pci_dev *dev) = NULL;
12-
1310
int pcibios_plat_dev_init(struct pci_dev *dev)
1411
{
15-
if (ltq_pci_plat_arch_init)
16-
return ltq_pci_plat_arch_init(dev);
17-
18-
if (ltq_pci_plat_dev_init)
19-
return ltq_pci_plat_dev_init(dev);
20-
2112
return 0;
2213
}
2314

0 commit comments

Comments
 (0)