diff options
author | Sergey Shtylyov <s.shtylyov@omp.ru> | 2021-08-12 23:39:11 +0300 |
---|---|---|
committer | Wolfram Sang <wsa@kernel.org> | 2021-08-17 21:41:32 +0200 |
commit | 8d744da241b81f4211f4813b0d3c1981326fa9ca (patch) | |
tree | 5d25342b51373c6f83ef9d6d51df8d9f37b7cc63 /drivers/i2c | |
parent | e47a0ced40472cfbe3e77502098ad489ba16bf97 (diff) | |
download | linux-8d744da241b81f4211f4813b0d3c1981326fa9ca.tar.bz2 |
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>
Diffstat (limited to 'drivers/i2c')
-rw-r--r-- | drivers/i2c/busses/i2c-synquacer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/i2c/busses/i2c-synquacer.c b/drivers/i2c/busses/i2c-synquacer.c index 31be1811d5e6..e4026c5416b1 100644 --- a/drivers/i2c/busses/i2c-synquacer.c +++ b/drivers/i2c/busses/i2c-synquacer.c @@ -578,7 +578,7 @@ static int synquacer_i2c_probe(struct platform_device *pdev) i2c->irq = platform_get_irq(pdev, 0); if (i2c->irq < 0) - return -ENODEV; + return i2c->irq; ret = devm_request_irq(&pdev->dev, i2c->irq, synquacer_i2c_isr, 0, dev_name(&pdev->dev), i2c); |