]> git.itanic.dy.fi Git - linux-stable/commit
mtd: core: prepare mtd_otp_nvmem_add() to handle -EPROBE_DEFER
authorMichael Walle <michael@walle.cc>
Wed, 8 Mar 2023 08:20:21 +0000 (09:20 +0100)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Wed, 8 Mar 2023 13:31:49 +0000 (14:31 +0100)
commit281f7a6c1a33fffcde32001bacbb4f672140fbf9
tree7b0895e26d6dfb129a2375e30a1236de581c691e
parente0489f6e221f5ddee6cb3bd51b992b790c5fa4b9
mtd: core: prepare mtd_otp_nvmem_add() to handle -EPROBE_DEFER

NVMEM soon will get the ability for nvmem layouts and these might
not be ready when nvmem_register() is called and thus it might
return -EPROBE_DEFER. Don't print the error message in this case.

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-4-michael@walle.cc
drivers/mtd/mtdcore.c