aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/lantiq/files/arch/mips/pci/fixup-lantiq.c
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2012-11-02 20:07:02 +0000
committerJohn Crispin <john@openwrt.org>2012-11-02 20:07:02 +0000
commit736835343c20f3ca495b73d2adf24d240f471676 (patch)
treebbf0787170ac715eaa9f8eabf8317cfe56fc17b3 /target/linux/lantiq/files/arch/mips/pci/fixup-lantiq.c
parentfa316620a7bd49e4d08bf1a410da98db54a83327 (diff)
downloadupstream-736835343c20f3ca495b73d2adf24d240f471676.tar.gz
upstream-736835343c20f3ca495b73d2adf24d240f471676.tar.bz2
upstream-736835343c20f3ca495b73d2adf24d240f471676.zip
move files/ -> files-3.3/
SVN-Revision: 34060
Diffstat (limited to 'target/linux/lantiq/files/arch/mips/pci/fixup-lantiq.c')
-rw-r--r--target/linux/lantiq/files/arch/mips/pci/fixup-lantiq.c42
1 files changed, 0 insertions, 42 deletions
diff --git a/target/linux/lantiq/files/arch/mips/pci/fixup-lantiq.c b/target/linux/lantiq/files/arch/mips/pci/fixup-lantiq.c
deleted file mode 100644
index daf5ae9e42..0000000000
--- a/target/linux/lantiq/files/arch/mips/pci/fixup-lantiq.c
+++ /dev/null
@@ -1,42 +0,0 @@
-/*
- * 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.
- *
- * Copyright (C) 2012 John Crispin <blogic@openwrt.org>
- */
-
-#include <linux/of_irq.h>
-#include <linux/of_pci.h>
-
-int (*ltqpci_map_irq)(const struct pci_dev *dev, u8 slot, u8 pin) = NULL;
-int (*ltqpci_plat_arch_init)(struct pci_dev *dev) = NULL;
-int (*ltqpci_plat_dev_init)(struct pci_dev *dev) = NULL;
-int *ltq_pci_irq_map;
-
-int pcibios_plat_dev_init(struct pci_dev *dev)
-{
- if (ltqpci_plat_arch_init)
- return ltqpci_plat_arch_init(dev);
-
- if (ltqpci_plat_dev_init)
- return ltqpci_plat_dev_init(dev);
-
- return 0;
-}
-
-int __init pcibios_map_irq(const struct pci_dev *dev, u8 slot, u8 pin)
-{
- if (ltqpci_map_irq)
- return ltqpci_map_irq(dev, slot, pin);
- if (ltq_pci_irq_map[slot]) {
- dev_info(&dev->dev, "SLOT:%d PIN:%d IRQ:%d\n", slot, pin, ltq_pci_irq_map[slot]);
- return ltq_pci_irq_map[slot];
- }
- printk(KERN_ERR "lq_pci: trying to map irq for unknown slot %d\n",
- slot);
-
- return 0;
-}
-
-