diff options
author | Fabrice Gasnier <fabrice.gasnier@st.com> | 2019-06-17 09:53:01 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-07-31 07:24:43 +0200 |
commit | 1b5fbb2d3ab5971435341b4d1df8cc14a2326c59 (patch) | |
tree | 054a2d55c2349db69a43399e4cc817bae7d3b2b7 /Makefile | |
parent | a96db791e00a88782984bac1fdd690fae82d3553 (diff) | |
download | linux-stable-1b5fbb2d3ab5971435341b4d1df8cc14a2326c59.tar.gz linux-stable-1b5fbb2d3ab5971435341b4d1df8cc14a2326c59.tar.bz2 linux-stable-1b5fbb2d3ab5971435341b4d1df8cc14a2326c59.zip |
i2c: stm32f7: fix the get_irq error cases
[ Upstream commit 79b4499524ed659fb76323efc30f3dc03967c88f ]
During probe, return the "get_irq" error value instead of -EINVAL which
allows the driver to be deferred probed if needed.
Fix also the case where of_irq_get() returns a negative value.
Note :
On failure of_irq_get() returns 0 or a negative value while
platform_get_irq() returns a negative value.
Fixes: aeb068c57214 ("i2c: i2c-stm32f7: add driver")
Reviewed-by: Pierre-Yves MORDRET <pierre-yves.mordret@st.com>
Signed-off-by: Fabien Dessenne <fabien.dessenne@st.com>
Signed-off-by: Fabrice Gasnier <fabrice.gasnier@st.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'Makefile')
0 files changed, 0 insertions, 0 deletions