mtd: ubi: block: wire-up device parent
authorDaniel Golle <daniel@makrotopia.org>
Thu, 22 Dec 2022 19:33:31 +0000 (19:33 +0000)
committerRichard Weinberger <richard@nod.at>
Mon, 13 Feb 2023 21:24:10 +0000 (22:24 +0100)
commit05b8773ca33253ea562be145cf3145b05ef19f86
tree523b06d92969f2f7efe488d3458909a1788d2af8
parent1ecf9e390452e73a362ea7fbde8f3f0db83de856
mtd: ubi: block: wire-up device parent

ubiblock devices were previously only identifyable by their name, but
not connected to their parent UBI volume device e.g. in sysfs.
Properly parent ubiblock device as descendant of a UBI volume device
to reflect device model hierachy.

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