summaryrefslogtreecommitdiff
path: root/scripts/Makefile.thinlto
diff options
context:
space:
mode:
authorRosen Penev <rosenp@gmail.com>2026-09-06 17:49:10 -0700
committerMiquel Raynal <miquel.raynal@bootlin.com>2026-09-09 09:55:35 +0200
commit8fcbb04ee5152b303980b2b48d69c6f7f4094ca6 (patch)
tree91c8151175d36ae640e7f3ca67a45ae1d8963e92 /scripts/Makefile.thinlto
parent673f0a002d60701af888d2280543b7556c0c2b20 (diff)
downloadlinux-8fcbb04ee5152b303980b2b48d69c6f7f4094ca6.tar.gz
linux-8fcbb04ee5152b303980b2b48d69c6f7f4094ca6.zip
mtd: docg3: use devm_platform_ioremap_resource()
Replace the open-coded platform_get_resource(IORESOURCE_MEM, 0) plus devm_ioremap() sequence with devm_platform_ioremap_resource(), which folds the resource lookup, region reservation and mapping into one step and returns an ERR_PTR checked with IS_ERR()/PTR_ERR(). The canonical docg3 register window is DOC_IOSPACE_SIZE (0x2000), which is the size any platform provides for this device, so mapping the full resource is equivalent to the previous fixed-size devm_ioremap(). Built for ARM (multi_v7_defconfig + CONFIG_MTD_DOCG3) with LLVM=1; drivers/mtd/devices/docg3.o compiles cleanly. 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