Skip to content

Commit 8d744da

Browse files
Sergey Shtylyovwsakernel
authored andcommitted
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: 0d676a6 ("i2c: add support for Socionext SynQuacer I2C controller") Signed-off-by: Sergey Shtylyov <[email protected]> Acked-by: Ard Biesheuvel <[email protected]> Signed-off-by: Wolfram Sang <[email protected]>
1 parent e47a0ce commit 8d744da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/i2c/busses/i2c-synquacer.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -578,7 +578,7 @@ static int synquacer_i2c_probe(struct platform_device *pdev)
578578

579579
i2c->irq = platform_get_irq(pdev, 0);
580580
if (i2c->irq < 0)
581-
return -ENODEV;
581+
return i2c->irq;
582582

583583
ret = devm_request_irq(&pdev->dev, i2c->irq, synquacer_i2c_isr,
584584
0, dev_name(&pdev->dev), i2c);

0 commit comments

Comments
 (0)