diff options
author | Fabrice Gasnier <[email protected]> | 2019-06-17 09:53:01 +0200 |
---|---|---|
committer | Wolfram Sang <[email protected]> | 2019-06-21 23:13:25 +0200 |
commit | 79b4499524ed659fb76323efc30f3dc03967c88f (patch) | |
tree | 6fdd7fbc1fa5b1d4b75b66aa6f2011db578d6395 /net/lapb/lapb_timer.c | |
parent | af668d6518dcf7106bf4eef1641d8143842dc9cc (diff) |
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 <[email protected]>
Signed-off-by: Fabien Dessenne <[email protected]>
Signed-off-by: Fabrice Gasnier <[email protected]>
Signed-off-by: Wolfram Sang <[email protected]>
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions