1 Subject: fix IRQ assignment if interrupts property is missing
2 From: Adhemerval Zanella Neto <azanella@br.ibm.com>
3 References: 446610 - LTC50006
5 This patch fix the IRQ assign.
6 If the code can not get "interrupts" property from PCI OF node,
7 it falls back to standard OF parsing.
9 Signed-off-by: Olaf Hering <olh@suse.de>
12 arch/powerpc/kernel/prom_parse.c | 7 +++++--
13 1 file changed, 5 insertions(+), 2 deletions(-)
15 --- a/arch/powerpc/kernel/prom_parse.c
16 +++ b/arch/powerpc/kernel/prom_parse.c
17 @@ -250,8 +250,11 @@ int of_irq_map_pci(struct pci_dev *pdev,
20 dn = pci_device_to_OF_node(pdev);
22 - return of_irq_map_one(dn, 0, out_irq);
24 + rc = of_irq_map_one(dn, 0, out_irq);
29 /* Ok, we don't, time to have fun. Let's start by building up an
30 * interrupt spec. we assume #interrupt-cells is 1, which is standard