From 26fbc15a86a5915b1a2c7e62737a382e3020065c Mon Sep 17 00:00:00 2001 From: Gabor Juhos Date: Sun, 3 Mar 2013 13:58:52 +0000 Subject: kernel: update linux 3.8 to 3.8.1 Signed-off-by: Gabor Juhos SVN-Revision: 35862 --- .../linux/atheros/patches-3.8/141-redboot_partition_scan.patch | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'target/linux/atheros/patches-3.8/141-redboot_partition_scan.patch') 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 */ -- cgit v1.2.3