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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Aug 2022 12:23:00 +0000 (14:23 +0200)
commitf9842ec6839ab9c748be9968e78183e3dcba2a63
treeb704e5a61d1116dc2c4f49234dac7ec3f6a63620
parent079651c6cfdc3e89577697098fdd96d70a72b405
genirq: Don't return error on missing optional irq_request_resources()

[ Upstream commit 95001b756467ecc9f5973eb5e74e97699d9bbdf1 ]

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
Signed-off-by: Sasha Levin <sashal@kernel.org>
kernel/irq/chip.c