OSDN Git Service
(root)
/
android-x86
/
kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ad81f05
)
pch_dma: fix error return code in pch_dma_probe()
author
Wei Yongjun
<yongjun_wei@trendmicro.com.cn>
Wed, 17 Jul 2013 00:34:59 +0000
(08:34 +0800)
committer
Vinod Koul
<vinod.koul@intel.com>
Mon, 22 Jul 2013 09:24:23 +0000
(14:54 +0530)
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>
drivers/dma/pch_dma.c
patch
|
blob
|
history
diff --git
a/drivers/dma/pch_dma.c
b/drivers/dma/pch_dma.c
index
ce3dc3e
..
0bbdea5
100644
(file)
--- 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,
if (!(pci_resource_flags(pdev, 1) & IORESOURCE_MEM)) {
dev_err(&pdev->dev, "Cannot find proper base address\n");
+ err = -ENODEV;
goto err_disable_pdev;
}