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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Mar 2020 06:17:56 +0000 (07:17 +0100)
commitc684f4f68c0a4076b417c1a4aa711495c4cd2601
tree7626ff91cbebe69d86ba6526f87aa28e0f2c6fef
parent4f60640723cfd989ac50550d3beb3538ca7a9bfa
i2c: gpio: suppress error on probe defer

commit 3747cd2efe7ecb9604972285ab3f60c96cb753a8 upstream.

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 05c74778858d
("i2c: gpio: Add support for named gpios in DT") but the error was
still output due to not checking the updated 'retdesc'.

Fixes: 05c74778858d ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/i2c/busses/i2c-gpio.c