aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd/ubi/kapi.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/mtd/ubi/kapi.c')
-rw-r--r--drivers/mtd/ubi/kapi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mtd/ubi/kapi.c b/drivers/mtd/ubi/kapi.c
index e1ef802a03a7..3bf2c951c2e5 100644
--- a/drivers/mtd/ubi/kapi.c
+++ b/drivers/mtd/ubi/kapi.c
@@ -46,7 +46,7 @@ int ubi_get_device_info(int ubi_num, struct ubi_device_info *di)
46 di->leb_size = ubi->leb_size; 46 di->leb_size = ubi->leb_size;
47 di->min_io_size = ubi->min_io_size; 47 di->min_io_size = ubi->min_io_size;
48 di->ro_mode = ubi->ro_mode; 48 di->ro_mode = ubi->ro_mode;
49 di->cdev = MKDEV(ubi->major, 0); 49 di->cdev = ubi->cdev.dev;
50 return 0; 50 return 0;
51} 51}
52EXPORT_SYMBOL_GPL(ubi_get_device_info); 52EXPORT_SYMBOL_GPL(ubi_get_device_info);
@@ -73,7 +73,7 @@ void ubi_get_volume_info(struct ubi_volume_desc *desc,
73 vi->usable_leb_size = vol->usable_leb_size; 73 vi->usable_leb_size = vol->usable_leb_size;
74 vi->name_len = vol->name_len; 74 vi->name_len = vol->name_len;
75 vi->name = vol->name; 75 vi->name = vol->name;
76 vi->cdev = MKDEV(ubi->major, vi->vol_id + 1); 76 vi->cdev = vol->cdev.dev;
77} 77}
78EXPORT_SYMBOL_GPL(ubi_get_volume_info); 78EXPORT_SYMBOL_GPL(ubi_get_volume_info);
79 79