i2c: core: treat EPROBE_DEFER when acquiring SCL/SDA GPIOs
authorCodrin Ciubotariu <codrin.ciubotariu@microchip.com>
Tue, 4 Aug 2020 09:59:25 +0000 (12:59 +0300)
committerWolfram Sang <wsa@kernel.org>
Wed, 5 Aug 2020 09:52:27 +0000 (11:52 +0200)
commit23a698fe65eca15fbdf925e8d70c5bf20ebf989e
tree0eb69ee3b87c44a3bd14c6db2057a94c31b2aa81
parent75820314de26b00aaea0d0e79269c0d17914c5c4
i2c: core: treat EPROBE_DEFER when acquiring SCL/SDA GPIOs

Even if I2C bus GPIO recovery is optional, devm_gpiod_get() can return
-EPROBE_DEFER, so we should at least treat that. This ends up with
i2c_register_adapter() to be able to return -EPROBE_DEFER.

Signed-off-by: Codrin Ciubotariu <codrin.ciubotariu@microchip.com>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
drivers/i2c/i2c-core-base.c