]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/pci: Use of_irq_parse_and_map_pci() helper
authorRob Herring <robh@kernel.org>
Thu, 4 Jan 2018 21:12:14 +0000 (15:12 -0600)
committerBjorn Helgaas <bhelgaas@google.com>
Wed, 17 Jan 2018 23:54:37 +0000 (17:54 -0600)
commita9e1dbafbbe8900e2bf47923b2e51a02c4f57327
tree84327d51aa8069184c16fbc02b436d20d1dff5c6
parent47c1795958bf577689c2709cc9ee4c30e84e0dec
powerpc/pci: Use of_irq_parse_and_map_pci() helper

Instead of calling both of_irq_parse_pci() and irq_create_of_mapping(),
call of_irq_parse_and_map_pci(), which does the same thing. This will allow
making of_irq_parse_pci() a private, static function.

This changes the logic slightly in that the fallback path will also be
taken if irq_create_of_mapping() fails internally.

Signed-off-by: Rob Herring <robh@kernel.org>
[bhelgaas: fold in virq init from Stephen Rothwell <sfr@canb.auug.org.au>]
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/kernel/pci-common.c