From 49c7b92ff64cbea9f66436130cab375716875407 Mon Sep 17 00:00:00 2001 From: Gabor Juhos Date: Mon, 4 Nov 2013 18:37:05 +0000 Subject: kernel/3.1[02]: move MTD root device setup code to mtdcore The current code only allows to automatically set root device on MTD partitions. Move the code to MTD core to allow to use it with all MTD devices. Signed-off-by: Gabor Juhos git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38643 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- .../generic/patches-3.12/405-mtd-add-more-helper-functions.patch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'target/linux/generic/patches-3.12/405-mtd-add-more-helper-functions.patch') diff --git a/target/linux/generic/patches-3.12/405-mtd-add-more-helper-functions.patch b/target/linux/generic/patches-3.12/405-mtd-add-more-helper-functions.patch index c2578c3003..a32aad4f70 100644 --- a/target/linux/generic/patches-3.12/405-mtd-add-more-helper-functions.patch +++ b/target/linux/generic/patches-3.12/405-mtd-add-more-helper-functions.patch @@ -1,6 +1,6 @@ --- a/drivers/mtd/mtdpart.c +++ b/drivers/mtd/mtdpart.c -@@ -435,14 +435,12 @@ static struct mtd_part *allocate_partiti +@@ -434,14 +434,12 @@ static struct mtd_part *allocate_partiti if (slave->offset == MTDPART_OFS_APPEND) slave->offset = cur_offset; if (slave->offset == MTDPART_OFS_NXTBLK) { @@ -18,7 +18,7 @@ } if (slave->offset == MTDPART_OFS_RETAIN) { slave->offset = cur_offset; -@@ -996,6 +994,24 @@ int mtd_is_partition(const struct mtd_in +@@ -988,6 +986,24 @@ int mtd_is_partition(const struct mtd_in } EXPORT_SYMBOL_GPL(mtd_is_partition); -- cgit v1.2.3