]> git.openfabrics.org - ~emulex/infiniband.git/commitdiff
MIPS: ath79: remove unused ar7{1x,24}x_pcibios_init functions
authorGabor Juhos <juhosg@openwrt.org>
Mon, 4 Feb 2013 10:58:49 +0000 (11:58 +0100)
committerJohn Crispin <blogic@openwrt.org>
Sun, 17 Feb 2013 00:25:36 +0000 (01:25 +0100)
The functions are unused now, so remove them.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
Patchwork: http://patchwork.linux-mips.org/patch/4909/
Signed-off-by: John Crispin <blogic@openwrt.org>
arch/mips/ath79/pci.c
arch/mips/include/asm/mach-ath79/pci.h [deleted file]
arch/mips/pci/pci-ar71xx.c
arch/mips/pci/pci-ar724x.c

index 81ef5797944a9744cbf03ccbdf4573c3d2e2ae24..c94bcec169abfadfacae9ac971d6d4b43144405d 100644 (file)
@@ -19,7 +19,6 @@
 #include <asm/mach-ath79/ar71xx_regs.h>
 #include <asm/mach-ath79/ath79.h>
 #include <asm/mach-ath79/irq.h>
-#include <asm/mach-ath79/pci.h>
 #include "pci.h"
 
 static int (*ath79_pci_plat_dev_init)(struct pci_dev *dev);
diff --git a/arch/mips/include/asm/mach-ath79/pci.h b/arch/mips/include/asm/mach-ath79/pci.h
deleted file mode 100644 (file)
index 7868f7f..0000000
+++ /dev/null
@@ -1,28 +0,0 @@
-/*
- *  Atheros AR71XX/AR724X PCI support
- *
- *  Copyright (C) 2011 RenĂ© Bolldorf <xsecute@googlemail.com>
- *  Copyright (C) 2008-2011 Gabor Juhos <juhosg@openwrt.org>
- *  Copyright (C) 2008 Imre Kaloz <kaloz@openwrt.org>
- *
- *  This program is free software; you can redistribute it and/or modify it
- *  under the terms of the GNU General Public License version 2 as published
- *  by the Free Software Foundation.
- */
-
-#ifndef __ASM_MACH_ATH79_PCI_H
-#define __ASM_MACH_ATH79_PCI_H
-
-#if defined(CONFIG_PCI) && defined(CONFIG_SOC_AR71XX)
-int ar71xx_pcibios_init(void);
-#else
-static inline int ar71xx_pcibios_init(void) { return 0; }
-#endif
-
-#if defined(CONFIG_PCI_AR724X)
-int ar724x_pcibios_init(int irq);
-#else
-static inline int ar724x_pcibios_init(int irq) { return 0; }
-#endif
-
-#endif /* __ASM_MACH_ATH79_PCI_H */
index 35ee23450d872e6e2dd155740442b48ba5a22ca7..69e0bb47de0851762725b5a9e86f9d83918647b8 100644 (file)
@@ -23,7 +23,6 @@
 
 #include <asm/mach-ath79/ar71xx_regs.h>
 #include <asm/mach-ath79/ath79.h>
-#include <asm/mach-ath79/pci.h>
 
 #define AR71XX_PCI_REG_CRP_AD_CBE      0x00
 #define AR71XX_PCI_REG_CRP_WRDATA      0x04
@@ -335,31 +334,6 @@ static void ar71xx_pci_reset(void)
        mdelay(100);
 }
 
-__init int ar71xx_pcibios_init(void)
-{
-       u32 t;
-
-       ar71xx_pcicfg_base = ioremap(AR71XX_PCI_CFG_BASE, AR71XX_PCI_CFG_SIZE);
-       if (ar71xx_pcicfg_base == NULL)
-               return -ENOMEM;
-
-       ar71xx_pci_reset();
-
-       /* setup COMMAND register */
-       t = PCI_COMMAND_MEMORY | PCI_COMMAND_MASTER | PCI_COMMAND_INVALIDATE
-         | PCI_COMMAND_PARITY | PCI_COMMAND_SERR | PCI_COMMAND_FAST_BACK;
-       ar71xx_pci_local_write(PCI_COMMAND, 4, t);
-
-       /* clear bus errors */
-       ar71xx_pci_check_error(1);
-
-       ar71xx_pci_irq_init(ATH79_CPU_IRQ_IP2);
-
-       register_pci_controller(&ar71xx_pci_controller);
-
-       return 0;
-}
-
 static int ar71xx_pci_probe(struct platform_device *pdev)
 {
        struct resource *res;
index b3f9d093c066f0e68ce6d528edeeb08d638d3579..8f008d9a112caab83982a2653fbf3a8c61454c1f 100644 (file)
@@ -15,7 +15,6 @@
 #include <linux/platform_device.h>
 #include <asm/mach-ath79/ath79.h>
 #include <asm/mach-ath79/ar71xx_regs.h>
-#include <asm/mach-ath79/pci.h>
 
 #define AR724X_PCI_REG_RESET           0x18
 #define AR724X_PCI_REG_INT_STATUS      0x4c
@@ -276,37 +275,6 @@ static void ar724x_pci_irq_init(int irq)
        irq_set_chained_handler(irq, ar724x_pci_irq_handler);
 }
 
-int ar724x_pcibios_init(int irq)
-{
-       int ret;
-
-       ret = -ENOMEM;
-
-       ar724x_pci_devcfg_base = ioremap(AR724X_PCI_CFG_BASE,
-                                        AR724X_PCI_CFG_SIZE);
-       if (ar724x_pci_devcfg_base == NULL)
-               goto err;
-
-       ar724x_pci_ctrl_base = ioremap(AR724X_PCI_CTRL_BASE,
-                                      AR724X_PCI_CTRL_SIZE);
-       if (ar724x_pci_ctrl_base == NULL)
-               goto err_unmap_devcfg;
-
-       ar724x_pci_link_up = ar724x_pci_check_link();
-       if (!ar724x_pci_link_up)
-               pr_warn("ar724x: PCIe link is down\n");
-
-       ar724x_pci_irq_init(irq);
-       register_pci_controller(&ar724x_pci_controller);
-
-       return PCIBIOS_SUCCESSFUL;
-
-err_unmap_devcfg:
-       iounmap(ar724x_pci_devcfg_base);
-err:
-       return ret;
-}
-
 static int ar724x_pci_probe(struct platform_device *pdev)
 {
        struct resource *res;