mtd: ubi: attach from device tree
authorDaniel Golle <daniel@makrotopia.org>
Tue, 19 Dec 2023 02:33:14 +0000 (02:33 +0000)
committerRichard Weinberger <richard@nod.at>
Sun, 25 Feb 2024 21:41:33 +0000 (22:41 +0100)
commit927c145208b04490fb40c5c88a1086b592bfac25
tree46cff19e4273a93d66fd163db833a10020966a78
parent762d73cd930e3073e927b2ec0811519bde2c8fb4
mtd: ubi: attach from device tree

Introduce device tree compatible 'linux,ubi' and attach compatible MTD
devices using the MTD add notifier. This is needed for a UBI device to
be available early at boot (and not only after late_initcall), so
volumes on them can be used eg. as NVMEM providers for other drivers.

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