diff options
author | Jonas Gorski <jogo@openwrt.org> | 2013-05-19 18:32:02 +0000 |
---|---|---|
committer | Jonas Gorski <jogo@openwrt.org> | 2013-05-19 18:32:02 +0000 |
commit | 1f4e5f77a0d5bc3cce01c501409ccfdce08b0382 (patch) | |
tree | f8546508f3f1b188cf1d39ef4cc8fe01739af3fe /target/linux/brcm63xx/patches-3.8/309-cfe_version_mod.patch | |
parent | 6e2b85b4016a2db5f49fb7da1ef479a82979393c (diff) | |
download | mtk-20170518-1f4e5f77a0d5bc3cce01c501409ccfdce08b0382.zip mtk-20170518-1f4e5f77a0d5bc3cce01c501409ccfdce08b0382.tar.gz mtk-20170518-1f4e5f77a0d5bc3cce01c501409ccfdce08b0382.tar.bz2 |
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>
SVN-Revision: 36659
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 f350d21..9482b6b 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; |