[Linux-stm32] [PATCH v3] i2c: i2c-stm32f7: fix the get_irq error cases
Wolfram Sang
wsa at the-dreams.de
Fri Jun 21 21:14:02 UTC 2019
On Mon, Jun 17, 2019 at 09:53:01AM +0200, Fabrice Gasnier wrote:
> 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 at st.com>
> Signed-off-by: Fabien Dessenne <fabien.dessenne at st.com>
> Signed-off-by: Fabrice Gasnier <fabrice.gasnier at st.com>
Applied to for-next, thanks!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://st-md-mailman.stormreply.com/pipermail/linux-stm32/attachments/20190621/3c64b9fa/attachment.sig>
More information about the Linux-stm32
mailing list