Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

MIPS: lantiq: Remove unused function pointer variables

Ever since introduction in the commit e47d488935ed ("MIPS: Lantiq: Add
PCI controller support.") ltqpci_plat_dev_init has been unused. In
57c8cb8f2429 ("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 <ilpo.jarvinen@linux.intel.com>
Reviewed-by: Sergio Paracuellos <sergio.paracuellos@gmal.com>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>

authored by

Ilpo Järvinen and committed by
Thomas Bogendoerfer
075dd2ee eac95d5a

-9
-9
arch/mips/pci/fixup-lantiq.c
··· 7 7 #include <linux/of_pci.h> 8 8 #include <linux/pci.h> 9 9 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 - 13 10 int pcibios_plat_dev_init(struct pci_dev *dev) 14 11 { 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 - 21 12 return 0; 22 13 } 23 14