[PATCH 2/4] mtd: core: fix nvmem error reporting

Miquel Raynal miquel.raynal at bootlin.com
Tue Mar 7 11:23:20 PST 2023

On Mon, 2023-03-06 at 12:58:03 UTC, Michael Walle wrote:
> The master MTD will only have an associated device if
> CONFIG_MTD_PARTITIONED_MASTER is set, thus we cannot use dev_err() on
> mtd->dev. Instead use the parent device which is the physical flash
> memory.
> Fixes: 4b361cfa8624 ("mtd: core: add OTP nvmem provider support")
> Cc: stable at vger.kernel.org
> Signed-off-by: Michael Walle <michael at walle.cc>

Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git mtd/next, thanks.


More information about the linux-mtd mailing list