aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips/pci
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2013-02-04 05:58:49 -0500
committerJohn Crispin <blogic@openwrt.org>2013-02-16 19:25:36 -0500
commit6e783865b4e60f2ecf7708f8ea24db5c5ea07ced (patch)
tree2f4cd8df0733cf177bbf74ae1ec7e079d4b6b013 /arch/mips/pci
parent9fc1ca5b73a82daedffa2d1d5daa48dd2093c39a (diff)
MIPS: ath79: remove unused ar7{1x,24}x_pcibios_init functions
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>
Diffstat (limited to 'arch/mips/pci')
-rw-r--r--arch/mips/pci/pci-ar71xx.c26
-rw-r--r--arch/mips/pci/pci-ar724x.c32
2 files changed, 0 insertions, 58 deletions
diff --git a/arch/mips/pci/pci-ar71xx.c b/arch/mips/pci/pci-ar71xx.c
index 35ee23450d87..69e0bb47de08 100644
--- a/arch/mips/pci/pci-ar71xx.c
+++ b/arch/mips/pci/pci-ar71xx.c
@@ -23,7 +23,6 @@
23 23
24#include <asm/mach-ath79/ar71xx_regs.h> 24#include <asm/mach-ath79/ar71xx_regs.h>
25#include <asm/mach-ath79/ath79.h> 25#include <asm/mach-ath79/ath79.h>
26#include <asm/mach-ath79/pci.h>
27 26
28#define AR71XX_PCI_REG_CRP_AD_CBE 0x00 27#define AR71XX_PCI_REG_CRP_AD_CBE 0x00
29#define AR71XX_PCI_REG_CRP_WRDATA 0x04 28#define AR71XX_PCI_REG_CRP_WRDATA 0x04
@@ -335,31 +334,6 @@ static void ar71xx_pci_reset(void)
335 mdelay(100); 334 mdelay(100);
336} 335}
337 336
338__init int ar71xx_pcibios_init(void)
339{
340 u32 t;
341
342 ar71xx_pcicfg_base = ioremap(AR71XX_PCI_CFG_BASE, AR71XX_PCI_CFG_SIZE);
343 if (ar71xx_pcicfg_base == NULL)
344 return -ENOMEM;
345
346 ar71xx_pci_reset();
347
348 /* setup COMMAND register */
349 t = PCI_COMMAND_MEMORY | PCI_COMMAND_MASTER | PCI_COMMAND_INVALIDATE
350 | PCI_COMMAND_PARITY | PCI_COMMAND_SERR | PCI_COMMAND_FAST_BACK;
351 ar71xx_pci_local_write(PCI_COMMAND, 4, t);
352
353 /* clear bus errors */
354 ar71xx_pci_check_error(1);
355
356 ar71xx_pci_irq_init(ATH79_CPU_IRQ_IP2);
357
358 register_pci_controller(&ar71xx_pci_controller);
359
360 return 0;
361}
362
363static int ar71xx_pci_probe(struct platform_device *pdev) 337static int ar71xx_pci_probe(struct platform_device *pdev)
364{ 338{
365 struct resource *res; 339 struct resource *res;
diff --git a/arch/mips/pci/pci-ar724x.c b/arch/mips/pci/pci-ar724x.c
index b3f9d093c066..8f008d9a112c 100644
--- a/arch/mips/pci/pci-ar724x.c
+++ b/arch/mips/pci/pci-ar724x.c
@@ -15,7 +15,6 @@
15#include <linux/platform_device.h> 15#include <linux/platform_device.h>
16#include <asm/mach-ath79/ath79.h> 16#include <asm/mach-ath79/ath79.h>
17#include <asm/mach-ath79/ar71xx_regs.h> 17#include <asm/mach-ath79/ar71xx_regs.h>
18#include <asm/mach-ath79/pci.h>
19 18
20#define AR724X_PCI_REG_RESET 0x18 19#define AR724X_PCI_REG_RESET 0x18
21#define AR724X_PCI_REG_INT_STATUS 0x4c 20#define AR724X_PCI_REG_INT_STATUS 0x4c
@@ -276,37 +275,6 @@ static void ar724x_pci_irq_init(int irq)
276 irq_set_chained_handler(irq, ar724x_pci_irq_handler); 275 irq_set_chained_handler(irq, ar724x_pci_irq_handler);
277} 276}
278 277
279int ar724x_pcibios_init(int irq)
280{
281 int ret;
282
283 ret = -ENOMEM;
284
285 ar724x_pci_devcfg_base = ioremap(AR724X_PCI_CFG_BASE,
286 AR724X_PCI_CFG_SIZE);
287 if (ar724x_pci_devcfg_base == NULL)
288 goto err;
289
290 ar724x_pci_ctrl_base = ioremap(AR724X_PCI_CTRL_BASE,
291 AR724X_PCI_CTRL_SIZE);
292 if (ar724x_pci_ctrl_base == NULL)
293 goto err_unmap_devcfg;
294
295 ar724x_pci_link_up = ar724x_pci_check_link();
296 if (!ar724x_pci_link_up)
297 pr_warn("ar724x: PCIe link is down\n");
298
299 ar724x_pci_irq_init(irq);
300 register_pci_controller(&ar724x_pci_controller);
301
302 return PCIBIOS_SUCCESSFUL;
303
304err_unmap_devcfg:
305 iounmap(ar724x_pci_devcfg_base);
306err:
307 return ret;
308}
309
310static int ar724x_pci_probe(struct platform_device *pdev) 278static int ar724x_pci_probe(struct platform_device *pdev)
311{ 279{
312 struct resource *res; 280 struct resource *res;