From ad15749b6d2b26bf7afe8a9d8724027ba1165b25 Mon Sep 17 00:00:00 2001 From: Hans de Goede Date: Thu, 17 Sep 2015 18:46:56 -0400 Subject: ubifs: Modify ubifs u-boot wrapper function prototypes for generic fs use Modify the ubifs u-boot wrapper function prototypes for generic fs use, and give them their own header file. This is a preparation patch for adding ubifs support to the generic fs code from fs/fs.c. Signed-off-by: Hans de Goede Reviewed-by: Heiko Schocher --- common/cmd_ubifs.c | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to 'common/cmd_ubifs.c') diff --git a/common/cmd_ubifs.c b/common/cmd_ubifs.c index 8e9a4e5038..5e9d357cd7 100644 --- a/common/cmd_ubifs.c +++ b/common/cmd_ubifs.c @@ -15,8 +15,7 @@ #include #include #include - -#include "../fs/ubifs/ubifs.h" +#include static int ubifs_initialized; static int ubifs_mounted; @@ -54,14 +53,7 @@ int ubifs_is_mounted(void) void cmd_ubifs_umount(void) { - - if (ubifs_sb) { - printf("Unmounting UBIFS volume %s!\n", - ((struct ubifs_info *)(ubifs_sb->s_fs_info))->vi.name); - ubifs_umount(ubifs_sb->s_fs_info); - } - - ubifs_sb = NULL; + uboot_ubifs_umount(); ubifs_mounted = 0; ubifs_initialized = 0; } -- cgit v1.2.3