diff options
| author | Rosen Penev <rosenp@gmail.com> | 2026-07-14 18:16:58 -0700 |
|---|---|---|
| committer | Damien Le Moal <dlemoal@kernel.org> | 2026-07-18 11:58:16 +0900 |
| commit | 5e8e8c42ce25782ff738a68724f8f5b93348121f (patch) | |
| tree | 33ace797a3187eede7d9b59942107106b966ab77 /tools/perf/scripts/python/bin/stackcollapse-record | |
| parent | a807f19c0e9c667c5c9a209bd7ff0c851222cf35 (diff) | |
ata: ahci_da850: use devm_platform_ioremap_resource()
Replace the open-coded platform_get_resource(IORESOURCE_MEM, 1) plus
devm_ioremap() sequence with devm_platform_ioremap_resource(pdev, 1),
which looks up resource index 1 (the power-down control register),
reserves it and maps it in one call, returning an ERR_PTR checked with
IS_ERR()/PTR_ERR(). Resource index 0 (the AHCI register block) is still
mapped separately as hpriv->mmio via ahci_platform_get_resources().
Built for ARM (davinci_all_defconfig + CONFIG_AHCI_DA850) with LLVM=1;
drivers/ata/ahci_da850.o compiles cleanly.
Assisted-by: opencode:hy3-free
Signed-off-by: Rosen Penev <rosenp@gmail.com>
Signed-off-by: Damien Le Moal <dlemoal@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions
