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

MIPS: ath79: remove ar724x_pci_add_data function

The variables set by this function are not used anymore.
Remove the function and the relevant variables as well.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/3501/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>

authored by

Gabor Juhos and committed by
Ralf Baechle
52c28be3 d22ce25f

-21
-7
arch/mips/ath79/mach-ubnt-xm.c
··· 82 82 #ifdef CONFIG_PCI 83 83 static struct ath9k_platform_data ubnt_xm_eeprom_data; 84 84 85 - static struct ar724x_pci_data ubnt_xm_pci_data[] = { 86 - { 87 - .irq = ATH79_PCI_IRQ(0), 88 - }, 89 - }; 90 - 91 85 static int ubnt_xm_pci_plat_dev_init(struct pci_dev *dev) 92 86 { 93 87 switch (PCI_SLOT(dev->devfn)) { ··· 98 104 memcpy(ubnt_xm_eeprom_data.eeprom_data, UBNT_XM_EEPROM_ADDR, 99 105 sizeof(ubnt_xm_eeprom_data.eeprom_data)); 100 106 101 - ar724x_pci_add_data(ubnt_xm_pci_data, ARRAY_SIZE(ubnt_xm_pci_data)); 102 107 ath79_pci_set_plat_dev_init(ubnt_xm_pci_plat_dev_init); 103 108 ath79_register_pci(); 104 109 }
-8
arch/mips/ath79/pci.c
··· 18 18 static int (*ath79_pci_plat_dev_init)(struct pci_dev *dev); 19 19 static const struct ath79_pci_irq *ath79_pci_irq_map __initdata; 20 20 static unsigned ath79_pci_nr_irqs __initdata; 21 - static struct ar724x_pci_data *pci_data; 22 - static int pci_data_size; 23 21 24 22 static const struct ath79_pci_irq ar71xx_pci_irq_map[] __initconst = { 25 23 { ··· 42 44 .irq = ATH79_PCI_IRQ(0), 43 45 } 44 46 }; 45 - 46 - void ar724x_pci_add_data(struct ar724x_pci_data *data, int size) 47 - { 48 - pci_data = data; 49 - pci_data_size = size; 50 - } 51 47 52 48 int __init pcibios_map_irq(const struct pci_dev *dev, uint8_t slot, uint8_t pin) 53 49 {
-6
arch/mips/ath79/pci.h
··· 11 11 #ifndef _ATH79_PCI_H 12 12 #define _ATH79_PCI_H 13 13 14 - struct ar724x_pci_data { 15 - int irq; 16 - }; 17 - 18 14 struct ath79_pci_irq { 19 15 u8 slot; 20 16 u8 pin; 21 17 int irq; 22 18 }; 23 - 24 - void ar724x_pci_add_data(struct ar724x_pci_data *data, int size); 25 19 26 20 #ifdef CONFIG_PCI 27 21 void ath79_pci_set_irq_map(unsigned nr_irqs, const struct ath79_pci_irq *map);