diff options
author | Andy Shevchenko <[email protected]> | 2021-03-09 11:37:35 +0200 |
---|---|---|
committer | Bartosz Golaszewski <[email protected]> | 2021-03-26 14:56:18 +0100 |
commit | 5c63a9dbab55be3c0df512c9d8efe80a44cd2ce8 (patch) | |
tree | 3b0b7866565035bf3970fdb9106b03e61eac351e /lib/mpi/mpi-sub-ui.c | |
parent | 515321acb56e1360bce4c9d60c498ec126a669dc (diff) |
gpiolib: Reuse device's fwnode to create IRQ domain
When IRQ domain is created for an ACPI case, the name of it becomes unknown-%d
since for now it utilizes of_node member only and doesn't consider fwnode case.
Convert IRQ domain creation code to utilize fwnode instead.
Before/After the change on Intel Galileo Gen 2 with two GPIO (IRQ) controllers:
unknown-1 ==> \_SB.PCI0.GIP0.GPO
unknown-2 ==> \_SB.NIO3
Due to the nature of this change we may also deduplicate the WARN():s
because in either case (DT or ACPI) the fwnode will be set correctly
and %pfw is an equivalent to what the current code prints as a prefix.
Signed-off-by: Andy Shevchenko <[email protected]>
Reviewed-by: Rafael J. Wysocki <[email protected]>
Signed-off-by: Bartosz Golaszewski <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-sub-ui.c')
0 files changed, 0 insertions, 0 deletions