diff options
author | Michael Walle <michael@walle.cc> | 2023-03-08 11:20:19 +0300 |
---|---|---|
committer | Miquel Raynal <miquel.raynal@bootlin.com> | 2023-03-08 16:31:36 +0300 |
commit | 8bd1d24e6ca3c599dd455b0e1b22f77bab8290eb (patch) | |
tree | a677a591d402147a14feeed8eb7957e2dd6538bf /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 1cd9ceaa5282ff10ea20a7fbadde5a476a1cc99e (diff) | |
download | linux-8bd1d24e6ca3c599dd455b0e1b22f77bab8290eb.tar.xz |
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
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions