irqdomain: Make __irq_domain_add() less OF-dependent
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 20 May 2020 16:49:25 +0000 (19:49 +0300)
committerMarc Zyngier <maz@kernel.org>
Thu, 21 May 2020 09:50:30 +0000 (10:50 +0100)
commit181e9d4efaf6aa8d1e7d510aeb7114c0f276fad7
tree50eb764ed1ff1f9e24d802bbe0912ae7ec03fd5b
parent128516e49de67d10d52fba62ef8d482b220ac4b0
irqdomain: Make __irq_domain_add() less OF-dependent

__irq_domain_add() relies in some places on the fact that the fwnode
can be only of type OF. This prevents refactoring of the code to support
other types of fwnode. Make it less OF-dependent by switching it
to use the fwnode directly where it makes sense.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20200520164927.39090-1-andriy.shevchenko@linux.intel.com
kernel/irq/irqdomain.c