[OpenWrt-Devel] [PATCH 3/4] ar71xx: generalize cybertan partition parser

Christian Lamparter chunkeey at googlemail.com
Fri Mar 6 13:48:57 EST 2015


By removing the NL16 signature check, the parser can be
utilized by other devices like the WD My Net Wi-fi Range
Extender.

Signed-off-by: Christian Lamparter <chunkeey at googlemail.com>
---
 target/linux/ar71xx/files/drivers/mtd/cybertan_part.c | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/target/linux/ar71xx/files/drivers/mtd/cybertan_part.c b/target/linux/ar71xx/files/drivers/mtd/cybertan_part.c
index 372ab51..817361a 100644
--- a/target/linux/ar71xx/files/drivers/mtd/cybertan_part.c
+++ b/target/linux/ar71xx/files/drivers/mtd/cybertan_part.c
@@ -123,12 +123,6 @@ static int cybertan_parse_partitions(struct mtd_info *master,
 		goto free_hdr;
 	}
 
-	if (strncmp(header->cybertan.magic, "NL16", 4) != 0) {
-		printk(KERN_NOTICE "%s: no WRT160NL signature found\n",
-		       master->name);
-		goto free_hdr;
-	}
-
 	theader = &header->trx;
 	if (le32_to_cpu(theader->magic) != TRX_MAGIC) {
 		printk(KERN_NOTICE "%s: no TRX header found\n", master->name);
-- 
2.1.4
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list