]> rtime.felk.cvut.cz Git - can-eth-gw-linux.git/commitdiff
MIPS: ath79: remove ar724x_pci_add_data function
authorGabor Juhos <juhosg@openwrt.org>
Wed, 14 Mar 2012 09:36:12 +0000 (10:36 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Tue, 15 May 2012 15:49:06 +0000 (17:49 +0200)
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>
arch/mips/ath79/mach-ubnt-xm.c
arch/mips/ath79/pci.c
arch/mips/ath79/pci.h

index ca47ba57a206b6c2b722dc75fafe3ab09dfd0856..4a3c60694c756fedaa3a3f9e18687065789cb721 100644 (file)
@@ -82,12 +82,6 @@ static struct ath79_spi_platform_data ubnt_xm_spi_data = {
 #ifdef CONFIG_PCI
 static struct ath9k_platform_data ubnt_xm_eeprom_data;
 
-static struct ar724x_pci_data ubnt_xm_pci_data[] = {
-       {
-               .irq    = ATH79_PCI_IRQ(0),
-       },
-};
-
 static int ubnt_xm_pci_plat_dev_init(struct pci_dev *dev)
 {
        switch (PCI_SLOT(dev->devfn)) {
@@ -104,7 +98,6 @@ static void __init ubnt_xm_pci_init(void)
        memcpy(ubnt_xm_eeprom_data.eeprom_data, UBNT_XM_EEPROM_ADDR,
               sizeof(ubnt_xm_eeprom_data.eeprom_data));
 
-       ar724x_pci_add_data(ubnt_xm_pci_data, ARRAY_SIZE(ubnt_xm_pci_data));
        ath79_pci_set_plat_dev_init(ubnt_xm_pci_plat_dev_init);
        ath79_register_pci();
 }
index 365a8b63e8c52399fce4be24883c7b16724e30be..253a382f63b20eae8dfbc2273eb23d4d61abc299 100644 (file)
@@ -18,8 +18,6 @@
 static int (*ath79_pci_plat_dev_init)(struct pci_dev *dev);
 static const struct ath79_pci_irq *ath79_pci_irq_map __initdata;
 static unsigned ath79_pci_nr_irqs __initdata;
-static struct ar724x_pci_data *pci_data;
-static int pci_data_size;
 
 static const struct ath79_pci_irq ar71xx_pci_irq_map[] __initconst = {
        {
@@ -45,12 +43,6 @@ static const struct ath79_pci_irq ar724x_pci_irq_map[] __initconst = {
        }
 };
 
-void ar724x_pci_add_data(struct ar724x_pci_data *data, int size)
-{
-       pci_data        = data;
-       pci_data_size   = size;
-}
-
 int __init pcibios_map_irq(const struct pci_dev *dev, uint8_t slot, uint8_t pin)
 {
        int irq = -1;
index a5c4e5856202cc12fad34598038cc1fbb3bf5c38..5ebed2104ed0f9ca92609b65e850aed1def4af9e 100644 (file)
 #ifndef _ATH79_PCI_H
 #define _ATH79_PCI_H
 
-struct ar724x_pci_data {
-       int irq;
-};
-
 struct ath79_pci_irq {
        u8      slot;
        u8      pin;
        int     irq;
 };
 
-void ar724x_pci_add_data(struct ar724x_pci_data *data, int size);
-
 #ifdef CONFIG_PCI
 void ath79_pci_set_irq_map(unsigned nr_irqs, const struct ath79_pci_irq *map);
 void ath79_pci_set_plat_dev_init(int (*func)(struct pci_dev *dev));