diff options
author | John Crispin <blogic@openwrt.org> | 2015-03-11 15:56:27 +0000 |
---|---|---|
committer | John Crispin <blogic@openwrt.org> | 2015-03-11 15:56:27 +0000 |
commit | a8a374fe68b6c6383a60fc3e04bed0c01623347c (patch) | |
tree | 3b0c5c2eeaa0623ebf21ca6af9cc66f430dc1195 /target/linux/ar71xx/files/drivers | |
parent | 2eabbd5247bf2413ad05832284e25a0ba156c4a0 (diff) | |
download | upstream-a8a374fe68b6c6383a60fc3e04bed0c01623347c.tar.gz upstream-a8a374fe68b6c6383a60fc3e04bed0c01623347c.tar.bz2 upstream-a8a374fe68b6c6383a60fc3e04bed0c01623347c.zip |
ar71xx: generalize cybertan partition parser
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@googlemail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44664 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ar71xx/files/drivers')
-rw-r--r-- | target/linux/ar71xx/files/drivers/mtd/cybertan_part.c | 6 |
1 files changed, 0 insertions, 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 e03967a98b..7c6dad8549 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); |