summaryrefslogtreecommitdiff
path: root/scripts/stackusage
diff options
context:
space:
mode:
authorRosen Penev <rosenp@gmail.com>2026-07-13 16:17:22 -0700
committerMiquel Raynal <miquel.raynal@bootlin.com>2026-07-17 17:49:31 +0200
commit355efa360ba3b9ed242f444c69fbafa84a29a525 (patch)
treed5e46a36366c8a03022f1f7235b102129384e76b /scripts/stackusage
parent956e7da12c114f13c63d126ab1d79c3b6a819060 (diff)
downloadlinux-355efa360ba3b9ed242f444c69fbafa84a29a525.tar.gz
linux-355efa360ba3b9ed242f444c69fbafa84a29a525.zip
mtd: mpc5121_nfc: use platform for irq and ioremap
Replace the open-coded of_address_to_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(). Switch IRQ acquisition from irq_of_parse_and_map() to platform_get_irq(), which only retrieves the interrupt the OF/platform core has already set up rather than transferring mapping ownership to the driver. Drop the now unneeded of_irq.h include. 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. Drop the now-unused regs_paddr / regs_size locals, which previously only fed the open-coded request/ioremap calls. Keep the linux/of_address.h include, as of_iomap() is still used elsewhere in the driver. Built for PowerPC (mpc512x_defconfig + CONFIG_MTD_NAND_MPC5121_NFC) with LLVM=1; drivers/mtd/nand/raw/mpc5121_nfc.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/stackusage')
0 files changed, 0 insertions, 0 deletions