diff options
Diffstat (limited to 'arch/arm/mach-orion5x/dns323-setup.c')
-rw-r--r-- | arch/arm/mach-orion5x/dns323-setup.c | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/arch/arm/mach-orion5x/dns323-setup.c b/arch/arm/mach-orion5x/dns323-setup.c index 058a525c2ab6..f9430f5ca9a8 100644 --- a/arch/arm/mach-orion5x/dns323-setup.c +++ b/arch/arm/mach-orion5x/dns323-setup.c | |||
@@ -43,11 +43,16 @@ | |||
43 | 43 | ||
44 | static int __init dns323_pci_map_irq(struct pci_dev *dev, u8 slot, u8 pin) | 44 | static int __init dns323_pci_map_irq(struct pci_dev *dev, u8 slot, u8 pin) |
45 | { | 45 | { |
46 | /* PCI-E */ | 46 | int irq; |
47 | if (dev->bus->number == orion5x_pcie_local_bus_nr()) | ||
48 | return IRQ_ORION5X_PCIE0_INT; | ||
49 | 47 | ||
50 | pr_err("%s: requested mapping for unknown bus\n", __func__); | 48 | /* |
49 | * Check for devices with hard-wired IRQs. | ||
50 | */ | ||
51 | irq = orion5x_pci_map_irq(dev, slot, pin); | ||
52 | if (irq != -1) | ||
53 | return irq; | ||
54 | |||
55 | pr_err("%s: requested mapping for unknown device\n", __func__); | ||
51 | 56 | ||
52 | return -1; | 57 | return -1; |
53 | } | 58 | } |
@@ -250,9 +255,9 @@ static void __init dns323_init(void) | |||
250 | */ | 255 | */ |
251 | orion5x_setup_dev_boot_win(DNS323_NOR_BOOT_BASE, DNS323_NOR_BOOT_SIZE); | 256 | orion5x_setup_dev_boot_win(DNS323_NOR_BOOT_BASE, DNS323_NOR_BOOT_SIZE); |
252 | 257 | ||
253 | /* DNS-323 has a Marvell 88X7042 SATA controller attached via PCIE | 258 | /* DNS-323 has a Marvell 88X7042 SATA controller attached via PCIe |
254 | * | 259 | * |
255 | * Open a special address decode windows for the PCIE WA. | 260 | * Open a special address decode windows for the PCIe WA. |
256 | */ | 261 | */ |
257 | orion5x_setup_pcie_wa_win(ORION5X_PCIE_WA_PHYS_BASE, | 262 | orion5x_setup_pcie_wa_win(ORION5X_PCIE_WA_PHYS_BASE, |
258 | ORION5X_PCIE_WA_SIZE); | 263 | ORION5X_PCIE_WA_SIZE); |