From fa9cc22e29faf24a70a4771a71f93e8a17045524 Mon Sep 17 00:00:00 2001 From: Teresa Remmet Date: Fri, 25 Nov 2016 09:06:07 +0100 Subject: ubi: barebox: Remove character device flag from static volumes Character device flag was set for ubi static volumes to vary the device file size. This is now done with the truncate option. So no need for the character device flag. This makes it also possible to dump a image from the static volume. Signed-off-by: Teresa Remmet Signed-off-by: Sascha Hauer --- drivers/mtd/ubi/barebox.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/mtd/ubi/barebox.c b/drivers/mtd/ubi/barebox.c index 2ad731ad9a..d67e566db6 100644 --- a/drivers/mtd/ubi/barebox.c +++ b/drivers/mtd/ubi/barebox.c @@ -244,9 +244,6 @@ int ubi_volume_cdev_add(struct ubi_device *ubi, struct ubi_volume *vol) cdev->priv = priv; cdev->size = vol->used_bytes; - if (vol->vol_type == UBI_STATIC_VOLUME) - cdev->flags = DEVFS_IS_CHARACTER_DEV; - cdev->dev = &vol->dev; ubi_msg(ubi, "registering %s as /dev/%s", vol->name, cdev->name); ret = devfs_create(cdev); -- cgit v1.2.3