of/irq: Split of_msi_map_rid to reuse msi-map lookup
authorMarc Zyngier <marc.zyngier@arm.com>
Thu, 1 Oct 2015 16:05:45 +0000 (17:05 +0100)
committerMarc Zyngier <marc.zyngier@arm.com>
Fri, 16 Oct 2015 12:07:15 +0000 (13:07 +0100)
commita251b263346e38b9fafebeb49ada9ce894882616
treef9b28b1a854cd1e64ef4289503b3363fef9d85fd
parentdeac7fc1c87f24099d7e15d8b662446497f57465
of/irq: Split of_msi_map_rid to reuse msi-map lookup

The msi-map property is also used to identify the MSI controller
as a form of grown-up msi-parent property.

Looking it up is complicated enough, and since of_msi_map_rid
already implements this, let's turn it into an internal utility
function. We'll put that to good use later on.

Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
drivers/of/irq.c