Re: [PATCH] mtd: mpc5121_nfc: use platform for irq and ioremap

Miquel Raynal <[email protected]>
Newsgroups org.infradead.lists.linux-mtd,dev.linux.lists.llvm,org.kernel.vger.linux-kernel
Message-ID <[email protected]>
On Mon, 13 Jul 2026 16:17:22 -0700, Rosen Penev wrote:
> 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.
> 
> [...]

Applied to mtd/next, thanks!

[1/1] mtd: mpc5121_nfc: use platform for irq and ioremap
      commit: 355efa360ba3b9ed242f444c69fbafa84a29a525

Patche(s) should be available on mtd/linux.git and will be
part of the next PR (provided that no robot complains by then).

Kind regards,
Miquèl


______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.