Michael Walle 8bd1d24e6c mtd: core: fix nvmem error reporting
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@vger.kernel.org
Signed-off-by: Michael Walle <michael@walle.cc>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20230308082021.870459-2-michael@walle.cc
2023-03-08 14:31:36 +01:00
..
2023-02-25 15:05:08 -08:00
2023-02-23 10:27:32 +01:00
2022-06-28 06:33:15 -06:00
2022-04-25 10:43:12 +02:00
2022-09-21 10:38:11 +02:00
2022-09-20 10:40:30 +02:00
2023-03-08 14:31:36 +01:00
2022-09-19 18:14:53 +02:00