mirror of
https://github.com/torvalds/linux.git
synced 2024-11-21 19:46:16 +00:00
remoteporc: ingenic: Use devm_platform_ioremap_resource_byname()
platform_get_resource_byname() and devm_ioremap_resource() can be replaced by devm_platform_ioremap_resource_byname(), which can simplify the code logic a bit, No functional change here. Signed-off-by: Zhang Zekun <zhangzekun11@huawei.com> Link: https://lore.kernel.org/r/20240906113405.92782-4-zhangzekun11@huawei.com [Fixed patch title] Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
This commit is contained in:
parent
2de346a45e
commit
38a0e38b31
@ -183,8 +183,7 @@ static int ingenic_rproc_probe(struct platform_device *pdev)
|
||||
vpu->dev = &pdev->dev;
|
||||
platform_set_drvdata(pdev, vpu);
|
||||
|
||||
mem = platform_get_resource_byname(pdev, IORESOURCE_MEM, "aux");
|
||||
vpu->aux_base = devm_ioremap_resource(dev, mem);
|
||||
vpu->aux_base = devm_platform_ioremap_resource_byname(pdev, "aux");
|
||||
if (IS_ERR(vpu->aux_base)) {
|
||||
dev_err(dev, "Failed to ioremap\n");
|
||||
return PTR_ERR(vpu->aux_base);
|
||||
|
Loading…
Reference in New Issue
Block a user