/* This function is the same as 'ubi_get_device_info()', but it assumes the UBI device is locked and cannot disappear.  */
void ubi_do_get_device_info(struct ubi_device *ubi, struct ubi_device_info *di)
/* This function is the same as 'ubi_get_device_info()', but it assumes the UBI device is locked and cannot disappear.  */
void ubi_do_get_device_info(struct ubi_device *ubi, struct ubi_device_info *di)
{
	di->ubi_num = ubi->ubi_num;
	di->leb_size = ubi->leb_size;
	di->min_io_size = ubi->min_io_size;
	di->ro_mode = ubi->ro_mode;
	di->cdev = ubi->cdev.dev;
}