aboutsummaryrefslogtreecommitdiffstats
path: root/fs/jffs2/fs.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/jffs2/fs.c')
-rw-r--r--fs/jffs2/fs.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/fs/jffs2/fs.c b/fs/jffs2/fs.c
index abb90c0c09cc..8a649f602767 100644
--- a/fs/jffs2/fs.c
+++ b/fs/jffs2/fs.c
@@ -672,6 +672,13 @@ static int jffs2_flash_setup(struct jffs2_sb_info *c) {
672 return ret; 672 return ret;
673 } 673 }
674 674
675 /* and an UBI volume */
676 if (jffs2_ubivol(c)) {
677 ret = jffs2_ubivol_setup(c);
678 if (ret)
679 return ret;
680 }
681
675 return ret; 682 return ret;
676} 683}
677 684
@@ -690,4 +697,9 @@ void jffs2_flash_cleanup(struct jffs2_sb_info *c) {
690 if (jffs2_nor_wbuf_flash(c)) { 697 if (jffs2_nor_wbuf_flash(c)) {
691 jffs2_nor_wbuf_flash_cleanup(c); 698 jffs2_nor_wbuf_flash_cleanup(c);
692 } 699 }
700
701 /* and an UBI volume */
702 if (jffs2_ubivol(c)) {
703 jffs2_ubivol_cleanup(c);
704 }
693} 705}