staging: board: Add support for translating hwirq to virq numbers
authorGeert Uytterhoeven <geert+renesas@glider.be>
Wed, 17 Jun 2015 08:38:52 +0000 (10:38 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 18 Jun 2015 04:42:51 +0000 (21:42 -0700)
commit72ee8626eeb121587d2e3a57d06611d2e0c3cc1b
tree24a95465485463aee30f985b4170d4aa7ce8173e
parentb0c750f74e10fd30a363bfa3467639f12954effa
staging: board: Add support for translating hwirq to virq numbers

As of commit 9a1091ef0017c40a ("irqchip: gic: Support hierarchy irq
domain."), GIC IRQ numbers are virtual, breaking hardcoded hardware IRQ
numbers in platform device resources.

Add support for translating hardware IRQ numbers to virtual IRQ numbers,
and fixing up platform device resources with hardcoded IRQ numbers.

Add a copyright header, including the original author.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Acked-by: Simon Horman <horms+renesas@verge.net.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/board/board.c
drivers/staging/board/board.h