Message ID | 20200918094348.110476-1-zhangqilong3@huawei.com |
---|---|
State | Not Applicable |
Delegated to: | David Miller |
Headers | show |
Series | [-next] ata: pata_octeon_cf: indicate correct error reason in octeon_cf_probe | expand |
diff --git a/drivers/ata/pata_octeon_cf.c b/drivers/ata/pata_octeon_cf.c index bd87476ab481..513998eaf15e 100644 --- a/drivers/ata/pata_octeon_cf.c +++ b/drivers/ata/pata_octeon_cf.c @@ -895,7 +895,7 @@ static int octeon_cf_probe(struct platform_device *pdev) resource_size(res_dma)); if (!cf_port->dma_base) { of_node_put(dma_node); - return -EINVAL; + return -ENOMEM; } irq_handler = octeon_cf_interrupt;