diff options
| author | Rosen Penev <rosenp@gmail.com> | 2026-09-15 00:28:53 -0700 |
|---|---|---|
| committer | Vinod Koul <vkoul@kernel.org> | 2026-09-15 22:59:28 +0530 |
| commit | 0a8dda0a15d3926422d286567f945a05328a4ac6 (patch) | |
| tree | 6aeef40900cb849af0df08716c210a028f144913 /tools/perf/scripts/python | |
| parent | a8d1f582fae8231bd0cf66164ef140cd410382d4 (diff) | |
| download | linux-next-0a8dda0a15d3926422d286567f945a05328a4ac6.tar.gz linux-next-0a8dda0a15d3926422d286567f945a05328a4ac6.zip | |
dmaengine: bestcomm: use devm_platform_get_and_ioremap_resource() to simplify code
Replace the open-coded resource lookup, request_mem_region, ioremap and
the manual iounmap/release_mem_region cleanup in probe/remove with the
managed devm_platform_get_and_ioremap_resource() helper. This removes the
now-unused error-unmap/release paths and simplifies probing.
Fix a resource size mismatch between allocating and freeing where
request_mem_region() and release_mem_region() hopefully use the same size
but is not guarenteed.
Signed-off-by: Rosen Penev <rosenp@gmail.com>
Reviewed-by: Frank Li <Frank.Li@nxp.com>
Link: https://patch.msgid.link/20260915072853.58587-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
