Skip to content

Commit 10abc7d

Browse files
Marc ZyngierKAGA-KOKO
authored andcommitted
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: Marc 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: Thomas Gleixner <tglx@linutronix.de>
1 parent e3096c9 commit 10abc7d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

include/linux/irqdomain.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,11 @@ enum {
161161
IRQ_DOMAIN_FLAG_NONCORE = (1 << 16),
162162
};
163163

164+
static inline struct device_node *irq_domain_get_of_node(struct irq_domain *d)
165+
{
166+
return d->of_node;
167+
}
168+
164169
#ifdef CONFIG_IRQ_DOMAIN
165170
struct irq_domain *__irq_domain_add(struct device_node *of_node, int size,
166171
irq_hw_number_t hwirq_max, int direct_max,

0 commit comments

Comments
 (0)