Skip to content

Commit 1328dec

Browse files
Sergey Shtylyovgregkh
authored andcommitted
pata_ep93xx: fix deferred probing
[ Upstream commit 5c81212 ] The driver overrides the error codes returned by platform_get_irq() to -ENXIO, so if it returns -EPROBE_DEFER, the driver would fail the probe permanently instead of the deferred probing. Propagate the error code upstream, as it should have been done from the start... Fixes: 2fff275 ("PATA host controller driver for ep93xx") Signed-off-by: Sergey Shtylyov <s.shtylyov@omprussia.ru> Link: https://lore.kernel.org/r/509fda88-2e0d-2cc7-f411-695d7e94b136@omprussia.ru Signed-off-by: Jens Axboe <axboe@kernel.dk> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent bab207d commit 1328dec

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/ata/pata_ep93xx.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -928,7 +928,7 @@ static int ep93xx_pata_probe(struct platform_device *pdev)
928928
/* INT[3] (IRQ_EP93XX_EXT3) line connected as pull down */
929929
irq = platform_get_irq(pdev, 0);
930930
if (irq < 0) {
931-
err = -ENXIO;
931+
err = irq;
932932
goto err_rel_gpio;
933933
}
934934

0 commit comments

Comments
 (0)