diff options
Diffstat (limited to 'drivers/mtd/ubi/build.c')
-rw-r--r-- | drivers/mtd/ubi/build.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/mtd/ubi/build.c b/drivers/mtd/ubi/build.c index ff4425de1527..7b42b4d05b3a 100644 --- a/drivers/mtd/ubi/build.c +++ b/drivers/mtd/ubi/build.c | |||
@@ -840,7 +840,6 @@ int ubi_attach_mtd_dev(struct mtd_info *mtd, int ubi_num, int vid_hdr_offset) | |||
840 | out_uif: | 840 | out_uif: |
841 | uif_close(ubi); | 841 | uif_close(ubi); |
842 | out_detach: | 842 | out_detach: |
843 | ubi_eba_close(ubi); | ||
844 | ubi_wl_close(ubi); | 843 | ubi_wl_close(ubi); |
845 | vfree(ubi->vtbl); | 844 | vfree(ubi->vtbl); |
846 | out_free: | 845 | out_free: |
@@ -903,7 +902,6 @@ int ubi_detach_mtd_dev(int ubi_num, int anyway) | |||
903 | kthread_stop(ubi->bgt_thread); | 902 | kthread_stop(ubi->bgt_thread); |
904 | 903 | ||
905 | uif_close(ubi); | 904 | uif_close(ubi); |
906 | ubi_eba_close(ubi); | ||
907 | ubi_wl_close(ubi); | 905 | ubi_wl_close(ubi); |
908 | vfree(ubi->vtbl); | 906 | vfree(ubi->vtbl); |
909 | put_mtd_device(ubi->mtd); | 907 | put_mtd_device(ubi->mtd); |