Prevent the MTD map to fail, somehow detect_cfe will read the tag plus some garbage...
authorFlorian Fainelli <florian@openwrt.org>
Thu, 20 Nov 2008 21:26:11 +0000 (21:26 +0000)
committerFlorian Fainelli <florian@openwrt.org>
Thu, 20 Nov 2008 21:26:11 +0000 (21:26 +0000)
SVN-Revision: 13299

target/linux/brcm63xx/files/drivers/mtd/maps/bcm963xx-flash.c

index 9543c172a4e8838f774fdefe51450213d3016040..dc1508b6f4d39a54433a57e97d0afb2534279ccc 100644 (file)
@@ -184,7 +184,7 @@ static int bcm963xx_detect_cfe(struct mtd_info *master)
        ret = master->read(master, idoffset, 8, &retlen, (void *)buf);
        buf[retlen] = 0;
        printk("bcm963xx: Read Signature value of %s\n", buf);
-       return strncmp(idstring,buf,8);
+       return strncmp(idstring, buf, 8);
 }
 
 static int __init bcm963xx_mtd_init(void)