]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
mtd: rawnand: pl353: fix probe resource allocation
authorBastien Curutchet <bastien.curutchet@bootlin.com>
Tue, 26 May 2026 07:10:00 +0000 (09:10 +0200)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Wed, 27 May 2026 09:10:25 +0000 (11:10 +0200)
commit19ed11aee966d91beebdef9d32ce926474872f79
tree1eebb33c58a1f5cabf00355ba6d3beed10aee8a6
parent7fbdbc7d028a20a78b7d28a9510a216c76b5fbfd
mtd: rawnand: pl353: fix probe resource allocation

During probe(), the devm_ioremap() is called with the parent device
instead of the current one. So when the module is unloaded, the register
area isn't released.

Target the pl35x device in the devm_ioremap() instead of its parent.

Cc: stable@vger.kernel.org
Fixes: 08d8c62164a3 ("mtd: rawnand: pl353: Add support for the ARM PL353 SMC NAND controller")
Signed-off-by: Bastien Curutchet <bastien.curutchet@bootlin.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
drivers/mtd/nand/raw/pl35x-nand-controller.c