diff options
author | Stefan Roese <sr@denx.de> | 2008-11-27 13:07:09 (GMT) |
---|---|---|
committer | Stefan Roese <sr@denx.de> | 2008-12-09 09:07:36 (GMT) |
commit | 2ee951ba2ac9874d2a93d52e7a187d3184be937e (patch) | |
tree | d377165f9fc4d4bd1ac89ff00253681f269c0100 /drivers/mtd/ubi/build.c | |
parent | 9def12cae33d2d3ea2dd56b197fd3dfb3ad60bf4 (diff) | |
download | u-boot-fsl-qoriq-2ee951ba2ac9874d2a93d52e7a187d3184be937e.tar.xz |
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>
Diffstat (limited to 'drivers/mtd/ubi/build.c')
-rw-r--r-- | drivers/mtd/ubi/build.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/mtd/ubi/build.c b/drivers/mtd/ubi/build.c index 17cabb2..bdf75c9 100644 --- a/drivers/mtd/ubi/build.c +++ b/drivers/mtd/ubi/build.c @@ -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); |