irqdomain: Use irq_domain_get_of_node() instead of direct field access
The struct irq_domain contains a "struct device_node *" field (of_node) that is almost the only link between the irqdomain and the device tree infrastructure. In order to prepare for the removal of that field, convert all users to use irq_domain_get_of_node() instead. Signed-off-by: Marc Zyngier <marc.zyngier@arm.com> Reviewed-and-tested-by: Hanjun Guo <hanjun.guo@linaro.org> Tested-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> Cc: <linux-arm-kernel@lists.infradead.org> Cc: Tomasz Nowicki <tomasz.nowicki@linaro.org> Cc: Suravee Suthikulpanit <Suravee.Suthikulpanit@amd.com> Cc: Graeme Gregory <graeme@xora.org.uk> Cc: Jake Oshins <jakeo@microsoft.com> Cc: Jiang Liu <jiang.liu@linux.intel.com> Cc: Jason Cooper <jason@lakedaemon.net> Cc: Rafael J. Wysocki <rjw@rjwysocki.net> Link: http://lkml.kernel.org/r/1444737105-31573-2-git-send-email-marc.zyngier@arm.com Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
This commit is contained in:

committed by
Thomas Gleixner

parent
e50226b4b8
commit
5d4c9bc776
@@ -144,9 +144,11 @@ int mpic_pasemi_msi_init(struct mpic *mpic)
|
||||
{
|
||||
int rc;
|
||||
struct pci_controller *phb;
|
||||
struct device_node *of_node;
|
||||
|
||||
if (!mpic->irqhost->of_node ||
|
||||
!of_device_is_compatible(mpic->irqhost->of_node,
|
||||
of_node = irq_domain_get_of_node(mpic->irqhost);
|
||||
if (!of_node ||
|
||||
!of_device_is_compatible(of_node,
|
||||
"pasemi,pwrficient-openpic"))
|
||||
return -ENODEV;
|
||||
|
||||
|
Reference in New Issue
Block a user