diff options
| author | Rosen Penev <rosenp@gmail.com> | 2026-08-24 13:21:20 -0700 |
|---|---|---|
| committer | Miquel Raynal <miquel.raynal@bootlin.com> | 2026-09-04 20:07:21 +0200 |
| commit | 0d66f9895f286d2fab396a71e6efeb95c4a7e5a6 (patch) | |
| tree | d0b5c575d704d7f598ed6a6d859b85bf024c1328 /scripts/Makefile.thinlto | |
| parent | c469391db15839b2d1b1294eb4a5e5c36ab5ac7a (diff) | |
| download | linux-next-0d66f9895f286d2fab396a71e6efeb95c4a7e5a6.tar.gz linux-next-0d66f9895f286d2fab396a71e6efeb95c4a7e5a6.zip | |
mtd: rawnand: ndfc: use devm_platform_ioremap_resource()
Replace the open-coded of_iomap()/iounmap() with the managed
devm_platform_ioremap_resource() helper. This fixes a mapping leak on
driver remove (the old code never called iounmap()) and simplifies the
error path by dropping the manual cleanup in ndfc_probe().
There is no overlapping memory-region concern introduced by this
change: each supported board DT describes a single ndfc node with a
unique 0x2000 register region, and the EBC parent uses dcr-reg rather
than a MEM reg resource, so the newly added request_mem_region() cannot
conflict with an existing reservation. Distinct chip selects map to
distinct 64-bit physical addresses, so CS instances do not overlap.
Fixes: a808ad3b0d28 ("[MTD] [NAND] ndfc driver")
Cc: stable@vger.kernel.org
Assisted-by: opencode:hy3-free
Signed-off-by: Rosen Penev <rosenp@gmail.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
