Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 10abc7df authored by Marc Zyngier's avatar Marc Zyngier Committed by Thomas Gleixner
Browse files

irqdomain: Add an accessor for the of_node field



As we're about to remove the of_node field from the irqdomain
structure, introduce an accessor for it. Subsequent patches
will take care of the actual repainting.

Signed-off-by: default avatarMarc Zyngier <marc.zyngier@arm.com>
Cc: Jiang Liu <jiang.liu@linux.intel.com>
Cc: Jason Cooper <jason@lakedaemon.net>
Link: http://lkml.kernel.org/r/1444402211-1141-1-git-send-email-marc.zyngier@arm.com


Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
parent e3096c9c
Loading
Loading
Loading
Loading
+5 −0
Original line number Original line Diff line number Diff line
@@ -161,6 +161,11 @@ enum {
	IRQ_DOMAIN_FLAG_NONCORE		= (1 << 16),
	IRQ_DOMAIN_FLAG_NONCORE		= (1 << 16),
};
};


static inline struct device_node *irq_domain_get_of_node(struct irq_domain *d)
{
	return d->of_node;
}

#ifdef CONFIG_IRQ_DOMAIN
#ifdef CONFIG_IRQ_DOMAIN
struct irq_domain *__irq_domain_add(struct device_node *of_node, int size,
struct irq_domain *__irq_domain_add(struct device_node *of_node, int size,
				    irq_hw_number_t hwirq_max, int direct_max,
				    irq_hw_number_t hwirq_max, int direct_max,