diff options
author | Daniel Golle <daniel@makrotopia.org> | 2022-12-22 19:33:31 +0000 |
---|---|---|
committer | Richard Weinberger <richard@nod.at> | 2023-02-13 22:24:10 +0100 |
commit | 05b8773ca33253ea562be145cf3145b05ef19f86 (patch) | |
tree | 523b06d92969f2f7efe488d3458909a1788d2af8 /drivers/mtd/ubi/kapi.c | |
parent | 1ecf9e390452e73a362ea7fbde8f3f0db83de856 (diff) |
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>
Diffstat (limited to 'drivers/mtd/ubi/kapi.c')
-rw-r--r-- | drivers/mtd/ubi/kapi.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/mtd/ubi/kapi.c b/drivers/mtd/ubi/kapi.c index 0fce99ff29b5..5db653eacbd4 100644 --- a/drivers/mtd/ubi/kapi.c +++ b/drivers/mtd/ubi/kapi.c @@ -79,6 +79,7 @@ void ubi_do_get_volume_info(struct ubi_device *ubi, struct ubi_volume *vol, vi->name_len = vol->name_len; vi->name = vol->name; vi->cdev = vol->cdev.dev; + vi->dev = &vol->dev; } /** |