1 From 0b026adc7a471edd018a060427e62d06e54be2bc Mon Sep 17 00:00:00 2001
2 From: Gabor Juhos <juhosg@openwrt.org>
3 Date: Sun, 20 Nov 2011 15:50:32 +0100
4 Subject: [PATCH 18/35] MIPS: ath79: remove ar724x_pci_add_data function
6 The variables set by this function are not used anymore.
7 Remove the function and the relevant variables as well.
9 Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
13 arch/mips/ath79/mach-ubnt-xm.c | 7 -------
14 arch/mips/ath79/pci.c | 8 --------
15 arch/mips/ath79/pci.h | 6 ------
16 3 files changed, 0 insertions(+), 21 deletions(-)
18 --- a/arch/mips/ath79/mach-ubnt-xm.c
19 +++ b/arch/mips/ath79/mach-ubnt-xm.c
20 @@ -82,12 +82,6 @@ static struct ath79_spi_platform_data ub
22 static struct ath9k_platform_data ubnt_xm_eeprom_data;
24 -static struct ar724x_pci_data ubnt_xm_pci_data[] = {
26 - .irq = ATH79_PCI_IRQ(0),
30 static int ubnt_xm_pci_plat_dev_init(struct pci_dev *dev)
32 switch (PCI_SLOT(dev->devfn)) {
33 @@ -104,7 +98,6 @@ static void __init ubnt_xm_pci_init(void
34 memcpy(ubnt_xm_eeprom_data.eeprom_data, UBNT_XM_EEPROM_ADDR,
35 sizeof(ubnt_xm_eeprom_data.eeprom_data));
37 - ar724x_pci_add_data(ubnt_xm_pci_data, ARRAY_SIZE(ubnt_xm_pci_data));
38 ath79_pci_set_plat_dev_init(ubnt_xm_pci_plat_dev_init);
41 --- a/arch/mips/ath79/pci.c
42 +++ b/arch/mips/ath79/pci.c
44 static int (*ath79_pci_plat_dev_init)(struct pci_dev *dev);
45 static const struct ath79_pci_irq *ath79_pci_irq_map __initdata;
46 static unsigned ath79_pci_nr_irqs __initdata;
47 -static struct ar724x_pci_data *pci_data;
48 -static int pci_data_size;
50 static const struct ath79_pci_irq ar71xx_pci_irq_map[] __initconst = {
52 @@ -45,12 +43,6 @@ static const struct ath79_pci_irq ar724x
56 -void ar724x_pci_add_data(struct ar724x_pci_data *data, int size)
59 - pci_data_size = size;
62 int __init pcibios_map_irq(const struct pci_dev *dev, uint8_t slot, uint8_t pin)
65 --- a/arch/mips/ath79/pci.h
66 +++ b/arch/mips/ath79/pci.h
71 -struct ar724x_pci_data {
75 struct ath79_pci_irq {
81 -void ar724x_pci_add_data(struct ar724x_pci_data *data, int size);
84 void ath79_pci_set_irq_map(unsigned nr_irqs, const struct ath79_pci_irq *map);
85 void ath79_pci_set_plat_dev_init(int (*func)(struct pci_dev *dev));