]> git.baikalelectronics.ru Git - kernel.git/commit
mailbox: stm32-ipcc: check invalid irq
authorFabien Dessenne <fabien.dessenne@st.com>
Wed, 24 Apr 2019 15:51:05 +0000 (17:51 +0200)
committerJassi Brar <jaswinder.singh@linaro.org>
Thu, 9 May 2019 05:41:00 +0000 (00:41 -0500)
commit665ad718e1a605de8b5bb909777b14b82af68d3b
treef2088f309e535a68f5040fc952b8411aaa366659
parentb786b8d2eff47e0e6024163ad2e8f320f696a4aa
mailbox: stm32-ipcc: check invalid irq

On failure of_irq_get() returns a negative value or zero, which is
not handled as an error in the existing implementation.
Instead of using this API, use platform_get_irq() that returns
exclusively a negative value on failure.
Also, do not output an error log in case of defer probe error.

Signed-off-by: Fabien Dessenne <fabien.dessenne@st.com>
Signed-off-by: Jassi Brar <jaswinder.singh@linaro.org>
drivers/mailbox/stm32-ipcc.c