projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f1e47b8
)
dmaengine: qcom: hidma_mgmt: Use devm_platform_get_and_ioremap_resource()
author
Yangtao Li
<frank.li@vivo.com>
Wed, 5 Jul 2023 08:18:54 +0000
(16:18 +0800)
committer
Vinod Koul
<vkoul@kernel.org>
Wed, 12 Jul 2023 16:54:00 +0000
(22:24 +0530)
Convert platform_get_resource(), devm_ioremap_resource() to a single
call to devm_platform_get_and_ioremap_resource(), as this is exactly
what this function does.
Signed-off-by: Yangtao Li <frank.li@vivo.com>
Link:
https://lore.kernel.org/r/20230705081856.13734-3-frank.li@vivo.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/qcom/hidma_mgmt.c
patch
|
blob
|
history
diff --git
a/drivers/dma/qcom/hidma_mgmt.c
b/drivers/dma/qcom/hidma_mgmt.c
index 05e96b31d871694222e67be6db13a6016aa0269f..1d675f31252b89ad8ba7ed57256d01d01d6b0999 100644
(file)
--- a/
drivers/dma/qcom/hidma_mgmt.c
+++ b/
drivers/dma/qcom/hidma_mgmt.c
@@
-176,10
+176,9
@@
static int hidma_mgmt_probe(struct platform_device *pdev)
pm_runtime_enable(&pdev->dev);
pm_runtime_get_sync(&pdev->dev);
- res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
- virtaddr = devm_ioremap_resource(&pdev->dev, res);
+ virtaddr = devm_platform_get_and_ioremap_resource(pdev, 0, &res);
if (IS_ERR(virtaddr)) {
- rc =
-ENOMEM
;
+ rc =
PTR_ERR(virtaddr)
;
goto out;
}