aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd/ubi/kapi.c
diff options
context:
space:
mode:
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2007-12-15 11:13:56 -0500
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2007-12-26 12:15:14 -0500
commit49dfc299288fe183b62a3f679a40c91b482d6d73 (patch)
treea4860162ae77f9c118619ec5562626c25a2f7800 /drivers/mtd/ubi/kapi.c
parent732aeacff6b2fcf3750cad9018bdd663a21a6a12 (diff)
UBI: remove redundant field
Remove redundant ubi->major field - we have it in ubi->cdev.dev already. Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
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