]> git.baikalelectronics.ru Git - kernel.git/commit
i2c: gpio: suppress error on probe defer
authorHamish Martin <hamish.martin@alliedtelesis.co.nz>
Mon, 9 Mar 2020 21:16:18 +0000 (10:16 +1300)
committerWolfram Sang <wsa@the-dreams.de>
Tue, 10 Mar 2020 11:31:55 +0000 (12:31 +0100)
commit32ef0ca592cf4413c8f019ff62cfd34ef04c2d75
tree89e55497abf94e2556c0136f38ceb97c6b35ec66
parentbced23e2fd970fae1bf7b37063b0a7842fe50682
i2c: gpio: suppress error on probe defer

If a GPIO we are trying to use is not available and we are deferring
the probe, don't output an error message.
This seems to have been the intent of commit f3fd06cabeea
("i2c: gpio: Add support for named gpios in DT") but the error was
still output due to not checking the updated 'retdesc'.

Fixes: f3fd06cabeea ("i2c: gpio: Add support for named gpios in DT")
Signed-off-by: Hamish Martin <hamish.martin@alliedtelesis.co.nz>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-gpio.c