+++ /dev/null
-Subject: fix IRQ assignment if interrupts property is missing
-From: Adhemerval Zanella Neto <azanella@br.ibm.com>
-References: 446610 - LTC50006
-
-This patch fix the IRQ assign.
-If the code can not get "interrupts" property from PCI OF node,
-it falls back to standard OF parsing.
-
-Signed-off-by: Olaf Hering <olh@suse.de>
-
----
- arch/powerpc/kernel/prom_parse.c | 7 +++++--
- 1 file changed, 5 insertions(+), 2 deletions(-)
-
---- a/arch/powerpc/kernel/prom_parse.c
-+++ b/arch/powerpc/kernel/prom_parse.c
-@@ -250,8 +250,11 @@ int of_irq_map_pci(struct pci_dev *pdev,
- * 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