Message ID | 85faea4c-4165-2a3f-1806-8f6d3f9d4de5@omprussia.ru |
---|---|
State | New |
Headers | show |
Series | Fix deferred probing for the Toshiba TX493x IDE drivers | expand |
Index: ide/drivers/ide/tx4938ide.c =================================================================== --- ide.orig/drivers/ide/tx4938ide.c +++ ide/drivers/ide/tx4938ide.c @@ -139,7 +139,7 @@ static int __init tx4938ide_probe(struct irq = platform_get_irq(pdev, 0); if (irq < 0) - return -ENODEV; + return irq; res = platform_get_resource(pdev, IORESOURCE_MEM, 0); if (!res) return -ENODEV;
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 code upstream. Fixes: 28502848f52f ("ide: Add tx4938ide driver (v2)") Signed-off-by: Sergey Shtylyov <s.shtylyov@omprussia.ru> --- drivers/ide/tx4938ide.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)