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> SVN-Revision: 44664
This commit is contained in:
parent
e5373f2761
commit
69955cf733
1 changed files with 0 additions and 6 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue