mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-11 12:28:41 +08:00
perf: qcom: Use devm_platform_get_and_ioremap_resource()
According to commit 890cc39a87
("drivers: provide
devm_platform_get_and_ioremap_resource()"), 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: Yang Li <yang.lee@linux.alibaba.com>
Link: https://lore.kernel.org/r/20230315023108.36953-1-yang.lee@linux.alibaba.com
Signed-off-by: Will Deacon <will@kernel.org>
This commit is contained in:
parent
d7f4679dc8
commit
8540504c51
@ -763,8 +763,7 @@ static int qcom_l3_cache_pmu_probe(struct platform_device *pdev)
|
||||
.capabilities = PERF_PMU_CAP_NO_EXCLUDE,
|
||||
};
|
||||
|
||||
memrc = platform_get_resource(pdev, IORESOURCE_MEM, 0);
|
||||
l3pmu->regs = devm_ioremap_resource(&pdev->dev, memrc);
|
||||
l3pmu->regs = devm_platform_get_and_ioremap_resource(pdev, 0, &memrc);
|
||||
if (IS_ERR(l3pmu->regs))
|
||||
return PTR_ERR(l3pmu->regs);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user