i2c: synquacer: fix deferred probing
authorSergey Shtylyov <s.shtylyov@omp.ru>
Thu, 12 Aug 2021 20:39:11 +0000 (23:39 +0300)
committerWolfram Sang <wsa@kernel.org>
Tue, 17 Aug 2021 19:41:32 +0000 (21:41 +0200)
commit8d744da241b81f4211f4813b0d3c1981326fa9ca
tree5d25342b51373c6f83ef9d6d51df8d9f37b7cc63
parente47a0ced40472cfbe3e77502098ad489ba16bf97
i2c: synquacer: fix deferred probing

The driver overrides the error codes returned by platform_get_irq() to
-ENODEV, so if it returns -EPROBE_DEFER, the driver will fail the probe
permanently instead of the deferred probing. Switch to propagating the
error codes upstream.

Fixes: 0d676a6c4390 ("i2c: add support for Socionext SynQuacer I2C controller")
Signed-off-by: Sergey Shtylyov <s.shtylyov@omprussia.ru>
Acked-by: Ard Biesheuvel <ardb@kernel.org>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
drivers/i2c/busses/i2c-synquacer.c