]> git.baikalelectronics.ru Git - kernel.git/commit
genirq: Don't return error on missing optional irq_request_resources()
authorAntonio Borneo <antonio.borneo@foss.st.com>
Thu, 12 May 2022 16:05:44 +0000 (18:05 +0200)
committerMarc Zyngier <maz@kernel.org>
Thu, 7 Jul 2022 08:04:13 +0000 (09:04 +0100)
commitefa572b94f4ef9cc2f659335b08654f6e63cd4ff
treeb221ff1c9839db11b588d49a35a9e29e1559af11
parent08aafa0d475a08e31a13403e9df41c7179f4bdcd
genirq: Don't return error on missing optional irq_request_resources()

Function irq_chip::irq_request_resources() is reported as optional
in the declaration of struct irq_chip.
If the parent irq_chip does not implement it, we should ignore it
and return.

Don't return error if the functions is missing.

Signed-off-by: Antonio Borneo <antonio.borneo@foss.st.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20220512160544.13561-1-antonio.borneo@foss.st.com
kernel/irq/chip.c