gpio: smp2p: Use irq_domain_get_of_node accessor

The internals of irq_domain data structure has changed and of_node element
has been replaced with fwnode element.

Use irq_domain_get_of_node accessor to refer to of_node element in
irq_domain data structure.

Signed-off-by: Karthikeyan Ramasubramanian <kramasub@codeaurora.org>
This commit is contained in:
Karthikeyan Ramasubramanian 2016-01-22 19:08:07 -07:00 committed by David Keitel
parent 07eb2c2868
commit e170bbd9bd

View file

@ -486,8 +486,8 @@ static void smp2p_add_irq_domain(struct smp2p_chip_dev *chip,
}
/* alloc a contiguous set of virt irqs from anywhere in the irq space */
irq_base = irq_alloc_descs_from(0, SMP2P_BITS_PER_ENTRY,
of_node_to_nid(chip->irq_domain->of_node));
irq_base = irq_alloc_descs_from(0, SMP2P_BITS_PER_ENTRY, of_node_to_nid(
irq_domain_get_of_node(chip->irq_domain)));
if (irq_base < 0) {
SMP2P_ERR("alloc virt irqs failed:%d name:%s pid%d\n", irq_base,
chip->name, chip->remote_pid);