mirror of
https://github.com/torvalds/linux.git
synced 2026-03-13 22:36:17 +01:00
MIPS: lantiq: Remove unused function pointer variables
Ever since introduction in the commite47d488935("MIPS: Lantiq: Add PCI controller support.") ltqpci_plat_dev_init has been unused. In57c8cb8f24("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>
This commit is contained in:
parent
eac95d5ae4
commit
075dd2eef0
1 changed files with 0 additions and 9 deletions
|
|
@ -7,17 +7,8 @@
|
|||
#include <linux/of_pci.h>
|
||||
#include <linux/pci.h>
|
||||
|
||||
int (*ltq_pci_plat_arch_init)(struct pci_dev *dev) = NULL;
|
||||
int (*ltq_pci_plat_dev_init)(struct pci_dev *dev) = NULL;
|
||||
|
||||
int pcibios_plat_dev_init(struct pci_dev *dev)
|
||||
{
|
||||
if (ltq_pci_plat_arch_init)
|
||||
return ltq_pci_plat_arch_init(dev);
|
||||
|
||||
if (ltq_pci_plat_dev_init)
|
||||
return ltq_pci_plat_dev_init(dev);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue