diff options
author | Imre Kaloz <kaloz@openwrt.org> | 2015-03-26 09:42:59 +0000 |
---|---|---|
committer | Imre Kaloz <kaloz@openwrt.org> | 2015-03-26 09:42:59 +0000 |
commit | af69bf56b6810419879f1aecad8160697877a8c6 (patch) | |
tree | 3904731ce5bfb9f3c9f44ef4aa3350114ee4a46e /target/linux/generic/patches-3.19/480-mtd-set-rootfs-to-be-root-dev.patch | |
parent | 6c0d6a3cb32b0b366b6c28aa7735f00a44226edd (diff) | |
download | mtk-20170518-af69bf56b6810419879f1aecad8160697877a8c6.zip mtk-20170518-af69bf56b6810419879f1aecad8160697877a8c6.tar.gz mtk-20170518-af69bf56b6810419879f1aecad8160697877a8c6.tar.bz2 |
drop 3.19 support
Signed-off-by: Imre Kaloz <kaloz@openwrt.org>
SVN-Revision: 45002
Diffstat (limited to 'target/linux/generic/patches-3.19/480-mtd-set-rootfs-to-be-root-dev.patch')
-rw-r--r-- | target/linux/generic/patches-3.19/480-mtd-set-rootfs-to-be-root-dev.patch | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/target/linux/generic/patches-3.19/480-mtd-set-rootfs-to-be-root-dev.patch b/target/linux/generic/patches-3.19/480-mtd-set-rootfs-to-be-root-dev.patch deleted file mode 100644 index 8fc3578..0000000 --- a/target/linux/generic/patches-3.19/480-mtd-set-rootfs-to-be-root-dev.patch +++ /dev/null @@ -1,26 +0,0 @@ ---- a/drivers/mtd/mtdcore.c -+++ b/drivers/mtd/mtdcore.c -@@ -37,6 +37,7 @@ - #include <linux/backing-dev.h> - #include <linux/gfp.h> - #include <linux/slab.h> -+#include <linux/root_dev.h> - - #include <linux/mtd/mtd.h> - #include <linux/mtd/partitions.h> -@@ -456,6 +457,15 @@ int add_mtd_device(struct mtd_info *mtd) - of this try_ nonsense, and no bitching about it - either. :) */ - __module_get(THIS_MODULE); -+ -+ if (!strcmp(mtd->name, "rootfs") && -+ config_enabled(CONFIG_MTD_ROOTFS_ROOT_DEV) && -+ ROOT_DEV == 0) { -+ pr_notice("mtd: device %d (%s) set to be root filesystem\n", -+ mtd->index, mtd->name); -+ ROOT_DEV = MKDEV(MTD_BLOCK_MAJOR, mtd->index); -+ } -+ - return 0; - - fail_added: |