summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2015-09-17 18:46:56 -0400
committerTom Rini <trini@konsulko.com>2015-10-24 13:50:31 -0400
commitad15749b6d2b26bf7afe8a9d8724027ba1165b25 (patch)
tree80c51df7904216ac3a8359351c4a9b5e7dfda6c5 /common
parentafc1744ec87d26965fc9a311554e0d50962555bd (diff)
downloadtalos-obmc-uboot-ad15749b6d2b26bf7afe8a9d8724027ba1165b25.tar.gz
talos-obmc-uboot-ad15749b6d2b26bf7afe8a9d8724027ba1165b25.zip
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 <hdegoede@redhat.com> Reviewed-by: Heiko Schocher <hs@denx.de>
Diffstat (limited to 'common')
-rw-r--r--common/cmd_ubifs.c12
1 files changed, 2 insertions, 10 deletions
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 <common.h>
#include <config.h>
#include <command.h>
-
-#include "../fs/ubifs/ubifs.h"
+#include <ubifs_uboot.h>
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;
}
OpenPOWER on IntegriCloud