platform: use fwnode_irq_get_byname instead of of_irq_get_byname to get irq
authorSoha Jin <soha@lohu.info>
Fri, 30 Sep 2022 16:26:04 +0000 (00:26 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 10 Nov 2022 17:56:47 +0000 (18:56 +0100)
commitd4ad017d634561907ecdd1e467a28612b369ee00
tree009f236af18a7346060b9d98a229cb9ed14cc024
parent27c0d217340e47ec995557f61423ef415afba987
platform: use fwnode_irq_get_byname instead of of_irq_get_byname to get irq

Not only platform devices described by OF have named interrupts, but
devices described by ACPI also have named interrupts. The fwnode is an
abstraction to different standards, and using fwnode_irq_get_byname can
support more devices.

Signed-off-by: Soha Jin <soha@lohu.info>
Tested-by: Wende Tan <twd2.me@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/base/platform.c