summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorRosen Penev <rosenp@gmail.com>2026-07-14 16:47:42 -0700
committerVinod Koul <vkoul@kernel.org>2026-09-03 19:15:54 +0530
commite99f446c47318f4489eb3a675d53d4047951a6d0 (patch)
tree8f0b3c7a23383e833ef7b36851ce4215f0520862 /tools/perf/scripts/python
parent635e425c0771ec2ba09b0ef69bb9814e2554374e (diff)
dmaengine: txx9dmac: use devm_platform_ioremap_resource()
Replace the open-coded platform_get_resource() plus devm_request_mem_region() and devm_ioremap() sequence with a single devm_platform_ioremap_resource() call, which folds the resource lookup, region reservation and mapping into one step and returns an ERR_PTR on failure, checked with IS_ERR() and propagated via PTR_ERR(). This is behaviorally equivalent: the driver already reserved the region with devm_request_mem_region(), so the non-overlapping reg requirement of devm_platform_ioremap_resource() was already satisfied. The txx9dmac platform device (arch/mips/txx9/generic/setup.c) provides a single IORESOURCE_MEM window per DMAC instance, and the child txx9dmac-chan devices carry only IRQ resources, so no region conflict is introduced. Assisted-by: opencode:hy3-free Signed-off-by: Rosen Penev <rosenp@gmail.com> Reviewed-by: Frank Li <Frank.Li@nxp.com> Link: https://patch.msgid.link/20260714234742.908956-1-rosenp@gmail.com Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions