diff options
author | Fabrice Gasnier <fabrice.gasnier@st.com> | 2019-06-17 09:53:01 +0200 |
---|---|---|
committer | Wolfram Sang <wsa@the-dreams.de> | 2019-06-21 23:13:25 +0200 |
commit | 79b4499524ed659fb76323efc30f3dc03967c88f (patch) | |
tree | 6fdd7fbc1fa5b1d4b75b66aa6f2011db578d6395 /Documentation/i2c | |
parent | af668d6518dcf7106bf4eef1641d8143842dc9cc (diff) | |
download | linux-79b4499524ed659fb76323efc30f3dc03967c88f.tar.gz |
i2c: stm32f7: fix the get_irq error cases
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>
Diffstat (limited to 'Documentation/i2c')
0 files changed, 0 insertions, 0 deletions