diff options
author | jogo <jogo@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2013-05-19 18:32:02 +0000 |
---|---|---|
committer | jogo <jogo@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2013-05-19 18:32:02 +0000 |
commit | 2ce30d075aab8baa7aae7ac3d58e46690e02f282 (patch) | |
tree | 582682b6f61eae43ecc27e162034e6d92d0644f7 /target/linux/brcm63xx/patches-3.8/309-cfe_version_mod.patch | |
parent | 2b7cc9340a9ee7d66e352990abbf64ef1192b488 (diff) |
bcm63xx: Simplify CFE detection.
Check bootloader argument in mtd.
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
[jogo@openwrt.org: split into two patches, one for detection,
one letting bcm63xxpart use it.]
Signed-off-by: Jonas Gorski <jogo@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@36659 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/brcm63xx/patches-3.8/309-cfe_version_mod.patch')
-rw-r--r-- | target/linux/brcm63xx/patches-3.8/309-cfe_version_mod.patch | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/target/linux/brcm63xx/patches-3.8/309-cfe_version_mod.patch b/target/linux/brcm63xx/patches-3.8/309-cfe_version_mod.patch index f350d21ac..9482b6b56 100644 --- a/target/linux/brcm63xx/patches-3.8/309-cfe_version_mod.patch +++ b/target/linux/brcm63xx/patches-3.8/309-cfe_version_mod.patch @@ -9,18 +9,3 @@ else strcpy(cfe_version, "unknown"); printk(KERN_INFO PFX "CFE version: %s\n", cfe_version); ---- a/drivers/mtd/bcm63xxpart.c -+++ b/drivers/mtd/bcm63xxpart.c -@@ -56,10 +56,10 @@ static int bcm63xx_detect_cfe(struct mtd - if (ret) - return ret; - -- if (strncmp("cfe-v", buf, 5) == 0) -+ if (strncmp("cfe-", buf, 4) == 0) - return 0; - -- /* very old CFE's do not have the cfe-v string, so check for magic */ -+ /* very old CFE's do not have the cfe- string, so check for magic */ - ret = mtd_read(master, BCM63XX_CFE_MAGIC_OFFSET, 8, &retlen, - (void *)buf); - buf[retlen] = 0; |