diff options
author | David Woodhouse <dwmw2@infradead.org> | 2007-04-27 14:16:19 -0400 |
---|---|---|
committer | David Woodhouse <dwmw2@infradead.org> | 2007-04-27 14:16:19 -0400 |
commit | d1da4e50e5d09f02c340927a4fcb7f54202fa033 (patch) | |
tree | 7f98317bdd45dbdb7644e9179891c5af6a3a8ef1 /fs/jffs2/fs.c | |
parent | 78ab67da1002d954ea4c3e2b441e2483c41f94e8 (diff) | |
parent | a205752d1ad2d37d6597aaae5a56fc396a770868 (diff) |
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6
Conflicts:
drivers/mtd/Kconfig
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Diffstat (limited to 'fs/jffs2/fs.c')
-rw-r--r-- | fs/jffs2/fs.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/fs/jffs2/fs.c b/fs/jffs2/fs.c index 23029f42ae8c..1d3b7a9fc828 100644 --- a/fs/jffs2/fs.c +++ b/fs/jffs2/fs.c | |||
@@ -670,6 +670,13 @@ static int jffs2_flash_setup(struct jffs2_sb_info *c) { | |||
670 | return ret; | 670 | return ret; |
671 | } | 671 | } |
672 | 672 | ||
673 | /* and an UBI volume */ | ||
674 | if (jffs2_ubivol(c)) { | ||
675 | ret = jffs2_ubivol_setup(c); | ||
676 | if (ret) | ||
677 | return ret; | ||
678 | } | ||
679 | |||
673 | return ret; | 680 | return ret; |
674 | } | 681 | } |
675 | 682 | ||
@@ -688,4 +695,9 @@ void jffs2_flash_cleanup(struct jffs2_sb_info *c) { | |||
688 | if (jffs2_nor_wbuf_flash(c)) { | 695 | if (jffs2_nor_wbuf_flash(c)) { |
689 | jffs2_nor_wbuf_flash_cleanup(c); | 696 | jffs2_nor_wbuf_flash_cleanup(c); |
690 | } | 697 | } |
698 | |||
699 | /* and an UBI volume */ | ||
700 | if (jffs2_ubivol(c)) { | ||
701 | jffs2_ubivol_cleanup(c); | ||
702 | } | ||
691 | } | 703 | } |