|
@@ -250,8 +250,11 @@ int of_irq_map_pci(struct pci_dev *pdev, struct of_irq *out_irq)
|
|
|
* parsing
|
|
|
*/
|
|
|
dn = pci_device_to_OF_node(pdev);
|
|
|
- if (dn)
|
|
|
- return of_irq_map_one(dn, 0, out_irq);
|
|
|
+ if (dn) {
|
|
|
+ rc = of_irq_map_one(dn, 0, out_irq);
|
|
|
+ if (!rc)
|
|
|
+ return rc;
|
|
|
+ }
|
|
|
|
|
|
/* Ok, we don't, time to have fun. Let's start by building up an
|
|
|
* interrupt spec. we assume #interrupt-cells is 1, which is standard
|