mirror of
git://git.openwrt.org/openwrt/openwrt.git
synced 2024-12-12 18:05:15 +00:00
SVN-Revision: 6516
This commit is contained in:
parent
08c5cb8c23
commit
603bbc1e8a
@ -96,10 +96,10 @@ diff -Nur linux-2.6.19.2/arch/arm/mach-ixp4xx/gateway7001-pci.c linux-2.6.19.2-o
|
|||||||
+
|
+
|
||||||
+static int __init gateway7001_map_irq(struct pci_dev *dev, u8 slot, u8 pin)
|
+static int __init gateway7001_map_irq(struct pci_dev *dev, u8 slot, u8 pin)
|
||||||
+{
|
+{
|
||||||
+ if (slot == 0)
|
+ if (slot == 1)
|
||||||
+ return IRQ_IXP4XX_GPIO10;
|
|
||||||
+ else if (slot == 1)
|
|
||||||
+ return IRQ_IXP4XX_GPIO11;
|
+ return IRQ_IXP4XX_GPIO11;
|
||||||
|
+ else if (slot == 2)
|
||||||
|
+ return IRQ_IXP4XX_GPIO10;
|
||||||
+ else return -1;
|
+ else return -1;
|
||||||
+}
|
+}
|
||||||
+
|
+
|
||||||
|
Loading…
Reference in New Issue
Block a user