UBI: Enable re-initializing of the "ubi part" command
With this patch now, the user can call "ubi part" multiple times to re-connect the UBI device to another MTD partition. Signed-off-by: Stefan Roese <sr@denx.de>
This commit is contained in:
@@ -1059,6 +1059,7 @@ void __exit ubi_exit(void)
|
||||
misc_deregister(&ubi_ctrl_cdev);
|
||||
class_remove_file(ubi_class, &ubi_version);
|
||||
class_destroy(ubi_class);
|
||||
mtd_devs = 0;
|
||||
}
|
||||
module_exit(ubi_exit);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user