Commit 97184267 authored by Roel Kluin's avatar Roel Kluin Committed by Ralf Baechle

MIPS: MSP71xx: request_irq() failure ignored in msp_pcibios_config_access()

Produce an error if request_irq() fails.
Signed-off-by: default avatarRoel Kluin <roel.kluin@gmail.com>
Cc: "Ithamar R. Adema" <ithamar.adema@team-embedded.nl>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent c2e32149
...@@ -385,6 +385,7 @@ int msp_pcibios_config_access(unsigned char access_type, ...@@ -385,6 +385,7 @@ int msp_pcibios_config_access(unsigned char access_type,
unsigned long intr; unsigned long intr;
unsigned long value; unsigned long value;
static char pciirqflag; static char pciirqflag;
int ret;
#if defined(CONFIG_PMC_MSP7120_GW) || defined(CONFIG_PMC_MSP7120_EVAL) #if defined(CONFIG_PMC_MSP7120_GW) || defined(CONFIG_PMC_MSP7120_EVAL)
unsigned int vpe_status; unsigned int vpe_status;
#endif #endif
...@@ -402,11 +403,13 @@ int msp_pcibios_config_access(unsigned char access_type, ...@@ -402,11 +403,13 @@ int msp_pcibios_config_access(unsigned char access_type,
* allocation assigns an interrupt handler to the interrupt. * allocation assigns an interrupt handler to the interrupt.
*/ */
if (pciirqflag == 0) { if (pciirqflag == 0) {
request_irq(MSP_INT_PCI,/* Hardcoded internal MSP7120 wiring */ ret = request_irq(MSP_INT_PCI,/* Hardcoded internal MSP7120 wiring */
bpci_interrupt, bpci_interrupt,
IRQF_SHARED | IRQF_DISABLED, IRQF_SHARED | IRQF_DISABLED,
"PMC MSP PCI Host", "PMC MSP PCI Host",
preg); preg);
if (ret != 0)
return ret;
pciirqflag = ~0; pciirqflag = ~0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment