projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4fbd8d1
)
dmaengine: stm32-dmamux: Remove unnecessary platform_get_resource() error check
author
Wei Yongjun
<weiyongjun1@huawei.com>
Wed, 17 Jan 2018 11:27:10 +0000
(11:27 +0000)
committer
Vinod Koul
<vinod.koul@intel.com>
Fri, 19 Jan 2018 05:37:50 +0000
(11:07 +0530)
devm_ioremap_resource() already checks if the resource is NULL, so
remove the unnecessary platform_get_resource() error check.
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Acked-by: Pierre-Yves MORDRET <pierre-yves.mordret@st.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/stm32-dmamux.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/dma/stm32-dmamux.c
b/drivers/dma/stm32-dmamux.c
index d5db0f6e1ff886f11404ad4712cc98581167edcb..4dbb30cf94acb8462cd50b8123c64259a86f31c9 100644
(file)
--- a/
drivers/dma/stm32-dmamux.c
+++ b/
drivers/dma/stm32-dmamux.c
@@
-253,9
+253,6
@@
static int stm32_dmamux_probe(struct platform_device *pdev)
}
res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
- if (!res)
- return -ENODEV;
-
iomem = devm_ioremap_resource(&pdev->dev, res);
if (IS_ERR(iomem))
return PTR_ERR(iomem);