aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/atheros/patches-3.8/141-redboot_partition_scan.patch
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2013-03-03 13:58:52 +0000
committerGabor Juhos <juhosg@openwrt.org>2013-03-03 13:58:52 +0000
commitf90fa7f4b4e7af984c1cc0c4c6a6d10922862b2a (patch)
treeb6c752face045359b2eb07a1148219a4b9cf6f85 /target/linux/atheros/patches-3.8/141-redboot_partition_scan.patch
parent2d55cfeda862e8a7dc77f3e577062b26e329a468 (diff)
downloadmaster-187ad058-f90fa7f4b4e7af984c1cc0c4c6a6d10922862b2a.tar.gz
master-187ad058-f90fa7f4b4e7af984c1cc0c4c6a6d10922862b2a.tar.bz2
master-187ad058-f90fa7f4b4e7af984c1cc0c4c6a6d10922862b2a.zip
kernel: update linux 3.8 to 3.8.1
Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35862 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/atheros/patches-3.8/141-redboot_partition_scan.patch')
-rw-r--r--target/linux/atheros/patches-3.8/141-redboot_partition_scan.patch9
1 files changed, 4 insertions, 5 deletions
diff --git a/target/linux/atheros/patches-3.8/141-redboot_partition_scan.patch b/target/linux/atheros/patches-3.8/141-redboot_partition_scan.patch
index c83823a219..c255baf8c6 100644
--- a/target/linux/atheros/patches-3.8/141-redboot_partition_scan.patch
+++ b/target/linux/atheros/patches-3.8/141-redboot_partition_scan.patch
@@ -1,6 +1,6 @@
--- a/drivers/mtd/redboot.c
+++ b/drivers/mtd/redboot.c
-@@ -79,6 +79,11 @@ static int parse_redboot_partitions(stru
+@@ -79,12 +79,18 @@ static int parse_redboot_partitions(stru
static char nullstring[] = "unallocated";
#endif
@@ -11,8 +11,7 @@
+ restart:
if ( directory < 0 ) {
offset = master->size + directory * master->erasesize;
- while (mtd_can_have_bb(master) &&
-@@ -86,6 +91,7 @@ static int parse_redboot_partitions(stru
+ while (mtd_block_isbad(master, offset)) {
if (!offset) {
nogood:
printk(KERN_NOTICE "Failed to find a non-bad block to check for RedBoot partition table\n");
@@ -20,7 +19,7 @@
return -EIO;
}
offset -= master->erasesize;
-@@ -99,10 +105,6 @@ static int parse_redboot_partitions(stru
+@@ -97,10 +103,6 @@ static int parse_redboot_partitions(stru
goto nogood;
}
}
@@ -31,7 +30,7 @@
printk(KERN_NOTICE "Searching for RedBoot partition table in %s at offset 0x%lx\n",
master->name, offset);
-@@ -175,6 +177,11 @@ static int parse_redboot_partitions(stru
+@@ -173,6 +175,11 @@ static int parse_redboot_partitions(stru
}
if (i == numslots) {
/* Didn't find it */