aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/generic/hack-5.15/420-mtd-set-rootfs-to-be-root-dev.patch
diff options
context:
space:
mode:
authorDaniel Golle <daniel@makrotopia.org>2022-01-07 17:39:42 +0000
committerDaniel Golle <daniel@makrotopia.org>2022-03-27 04:51:31 +0100
commit30a5e073906ab671c31063cb0deed00686369277 (patch)
treeee92c7f7711c8bc98451f93bf333a7bf6ed7bc73 /target/linux/generic/hack-5.15/420-mtd-set-rootfs-to-be-root-dev.patch
parent71efd34700e59f553367abb1b5de28c01f4c2d12 (diff)
downloadupstream-30a5e073906ab671c31063cb0deed00686369277.tar.gz
upstream-30a5e073906ab671c31063cb0deed00686369277.tar.bz2
upstream-30a5e073906ab671c31063cb0deed00686369277.zip
generic: 5.15: get uImage.FIT partition parser ready
Prepare uImage.FIT partition parser for Linux 5.15 Signed-off-by: Daniel Golle <daniel@makrotopia.org> Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
Diffstat (limited to 'target/linux/generic/hack-5.15/420-mtd-set-rootfs-to-be-root-dev.patch')
-rw-r--r--target/linux/generic/hack-5.15/420-mtd-set-rootfs-to-be-root-dev.patch5
1 files changed, 1 insertions, 4 deletions
diff --git a/target/linux/generic/hack-5.15/420-mtd-set-rootfs-to-be-root-dev.patch b/target/linux/generic/hack-5.15/420-mtd-set-rootfs-to-be-root-dev.patch
index b071ac61ec..80122277e9 100644
--- a/target/linux/generic/hack-5.15/420-mtd-set-rootfs-to-be-root-dev.patch
+++ b/target/linux/generic/hack-5.15/420-mtd-set-rootfs-to-be-root-dev.patch
@@ -20,7 +20,7 @@ Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
#include <linux/nvmem-provider.h>
#include <linux/mtd/mtd.h>
-@@ -694,6 +695,19 @@ int add_mtd_device(struct mtd_info *mtd)
+@@ -694,6 +695,16 @@ int add_mtd_device(struct mtd_info *mtd)
of this try_ nonsense, and no bitching about it
either. :) */
__module_get(THIS_MODULE);
@@ -31,9 +31,6 @@ Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
+ unsigned int index = mtd->index;
+ pr_notice("mtd: device %d (%s) set to be root filesystem\n",
+ mtd->index, mtd->name);
-+#ifdef CONFIG_FIT_PARTITION
-+ index <<= 2;
-+#endif
+ ROOT_DEV = MKDEV(MTD_BLOCK_MAJOR, index);
+ }
+