mtd: ubi: populate ubi volume fwnode
authorDaniel Golle <daniel@makrotopia.org>
Tue, 19 Dec 2023 02:33:38 +0000 (02:33 +0000)
committerRichard Weinberger <richard@nod.at>
Sun, 25 Feb 2024 21:41:33 +0000 (22:41 +0100)
commit51932f9fc4871619e93abf4de6f1282ec23d936c
treed907318fc870d9104f73713dad248d631a2d3c5e
parent7e84c961b2eb062d2f47037dcca52dcd1d3615b5
mtd: ubi: populate ubi volume fwnode

Look for the 'volumes' subnode of an MTD partition attached to a UBI
device and attach matching child nodes to UBI volumes.
This allows UBI volumes to be referenced in device tree, e.g. for use
as NVMEM providers.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Signed-off-by: Richard Weinberger <richard@nod.at>
drivers/mtd/ubi/vmt.c