irqchip: s3c24xx: use irq_create_mapping for parent irqs

A patch from »move s3c24xx-irq to drivers/irqchip and add dt support« in state Mainline for linux-kernel

From: Heiko Stuebner <heiko@...> Date: Sat, 16 Mar 2013 15:35:30 +0100

Commit-Message

Getting the parent irq number thru irq_find_mapping will fail for non-legacy irq_domains, as the mapping of the parent irq won't have been created. As irq_create_mapping will just output an already mapped irq number if its already mapped, this does also not influence the legacy mappings. Signed-off-by: Heiko Stuebner <heiko@...>

Patch-Comment

drivers/irqchip/irq-s3c24xx.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)

Statistics

  • 1 lines added
  • 1 lines removed

Changes

------------------------ drivers/irqchip/irq-s3c24xx.c -------------------------
index a565eb8..1eba289 100644
@@ -429,7 +429,7 @@ static int s3c24xx_irq_map(struct irq_domain *h, unsigned int virq,
parent_irq_data->sub_bits |= (1UL << hw);
/* attach the demuxer to the parent irq */
- irqno = irq_find_mapping(parent_intc->domain,
+ irqno = irq_create_mapping(parent_intc->domain,
irq_data->parent_irq);
if (!irqno) {
pr_err("irq-s3c24xx: could not find mapping for parent irq %lu\n",
 
 

Recent Patches

About Us

Sed lacus. Donec lectus. Nullam pretium nibh ut turpis. Nam bibendum. In nulla tortor, elementum vel, tempor at, varius non, purus. Mauris vitae nisl nec metus placerat consectetuer.

Read More...