--- a/drivers/mtd/ubi/block.c
+++ b/drivers/mtd/ubi/block.c
-@@ -614,6 +614,44 @@ static int __init ubiblock_create_from_p
- return ret;
+@@ -616,6 +616,44 @@ static void __init ubiblock_create_from_
+ }
}
+#define UBIFS_NODE_MAGIC 0x06101831
static void ubiblock_remove_all(void)
{
struct ubiblock *next;
-@@ -644,6 +682,10 @@ int __init ubiblock_init(void)
- if (ret)
- goto err_remove;
+@@ -646,6 +684,10 @@ int __init ubiblock_init(void)
+ */
+ ubiblock_create_from_param();
+ /* auto-attach "rootfs" volume if existing and non-ubifs */
+ if (config_enabled(CONFIG_MTD_ROOTFS_ROOT_DEV))