ARM: omap3_logic: Remove SPL_OF_CONTROL and OF_PLATDATA
[platform/kernel/u-boot.git] / cmd / ubi.c
index bb8f97f..2b74a98 100644 (file)
--- a/cmd/ubi.c
+++ b/cmd/ubi.c
@@ -32,8 +32,7 @@
 static struct ubi_device *ubi;
 
 #ifdef CONFIG_CMD_UBIFS
-int ubifs_is_mounted(void);
-void cmd_ubifs_umount(void);
+#include <ubifs_uboot.h>
 #endif
 
 static void display_volume_info(struct ubi_device *ubi)
@@ -418,11 +417,6 @@ static int ubi_dev_scan(struct mtd_info *info, const char *vid_header_offset)
 
 int ubi_detach(void)
 {
-       if (mtdparts_init() != 0) {
-               printf("Error initializing mtdparts!\n");
-               return 1;
-       }
-
 #ifdef CONFIG_CMD_UBIFS
        /*
         * Automatically unmount UBIFS partition when user