/* uif_close - close user interfaces for an UBI device. @ubi: UBI device description object  */
static void uif_close(struct ubi_device *ubi)
/* uif_close - close user interfaces for an UBI device. @ubi: UBI device description object  */
static void uif_close(struct ubi_device *ubi)
{
	kill_volumes(ubi);
	ubi_sysfs_close(ubi);
	cdev_del(&ubi->cdev);
	unregister_chrdev_region(ubi->cdev.dev, ubi->vtbl_slots + 1);
}