diff options
author | Wei Yongjun <yongjun_wei@trendmicro.com.cn> | 2013-07-16 20:34:59 -0400 |
---|---|---|
committer | Vinod Koul <vinod.koul@intel.com> | 2013-07-22 05:24:23 -0400 |
commit | 27abb2ffb07a70bdebf9a785658f68f10600281c (patch) | |
tree | bcc1f59bc0e69e9a794715a86f702aa0f33c706d | |
parent | ad81f0545ef01ea651886dddac4bef6cec930092 (diff) |
pch_dma: fix error return code in pch_dma_probe()
Fix to return -ENODEV when no proper base address found error
handling case instead of 0, as done elsewhere in this function.
Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
-rw-r--r-- | drivers/dma/pch_dma.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/dma/pch_dma.c b/drivers/dma/pch_dma.c index ce3dc3e9688c..0bbdea5059f3 100644 --- a/drivers/dma/pch_dma.c +++ b/drivers/dma/pch_dma.c | |||
@@ -867,6 +867,7 @@ static int pch_dma_probe(struct pci_dev *pdev, | |||
867 | 867 | ||
868 | if (!(pci_resource_flags(pdev, 1) & IORESOURCE_MEM)) { | 868 | if (!(pci_resource_flags(pdev, 1) & IORESOURCE_MEM)) { |
869 | dev_err(&pdev->dev, "Cannot find proper base address\n"); | 869 | dev_err(&pdev->dev, "Cannot find proper base address\n"); |
870 | err = -ENODEV; | ||
870 | goto err_disable_pdev; | 871 | goto err_disable_pdev; |
871 | } | 872 | } |
872 | 873 | ||