diff options
author | Hauke Mehrtens <hauke@hauke-m.de> | 2013-01-03 01:53:30 +0000 |
---|---|---|
committer | Hauke Mehrtens <hauke@hauke-m.de> | 2013-01-03 01:53:30 +0000 |
commit | 25afeba608b9db64cc0cab1f7be790f64193f590 (patch) | |
tree | f293f93d06a2a30ce21d64d2a64763ba7bbd4e6c /target/linux/brcm47xx/patches-3.6/520-MIPS-BCM47XX-fix-time-for-WL520G-and-other-200-MHz-C.patch | |
parent | edc7ab525ff7cc45ea478b8b936e596789eb851a (diff) | |
download | upstream-25afeba608b9db64cc0cab1f7be790f64193f590.tar.gz upstream-25afeba608b9db64cc0cab1f7be790f64193f590.tar.bz2 upstream-25afeba608b9db64cc0cab1f7be790f64193f590.zip |
brcm47xx: add a new version of the nvram rewrite patch
This is the version like it was send for mainline inclusion.
SVN-Revision: 34988
Diffstat (limited to 'target/linux/brcm47xx/patches-3.6/520-MIPS-BCM47XX-fix-time-for-WL520G-and-other-200-MHz-C.patch')
-rw-r--r-- | target/linux/brcm47xx/patches-3.6/520-MIPS-BCM47XX-fix-time-for-WL520G-and-other-200-MHz-C.patch | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/target/linux/brcm47xx/patches-3.6/520-MIPS-BCM47XX-fix-time-for-WL520G-and-other-200-MHz-C.patch b/target/linux/brcm47xx/patches-3.6/520-MIPS-BCM47XX-fix-time-for-WL520G-and-other-200-MHz-C.patch index 2ae45e8f44..ff670e87a9 100644 --- a/target/linux/brcm47xx/patches-3.6/520-MIPS-BCM47XX-fix-time-for-WL520G-and-other-200-MHz-C.patch +++ b/target/linux/brcm47xx/patches-3.6/520-MIPS-BCM47XX-fix-time-for-WL520G-and-other-200-MHz-C.patch @@ -4,7 +4,7 @@ #include <linux/ssb/ssb.h> #include <asm/time.h> #include <bcm47xx.h> -+#include <nvram.h> ++#include <bcm47xx_nvram.h> void __init plat_time_init(void) { @@ -31,10 +31,10 @@ } + if (chip_id == 0x5354) { -+ len = nvram_getenv("clkfreq", buf, sizeof(buf)); ++ len = bcm47xx_nvram_getenv("clkfreq", buf, sizeof(buf)); + if (len >= 0 && !strncmp(buf, "200", 4)) + hz = 100000000; -+ len = nvram_getenv("hardware_version", buf, sizeof(buf)); ++ len = bcm47xx_nvram_getenv("hardware_version", buf, sizeof(buf)); + if (len >= 0 && !strncmp(buf, "WL520G", 6)) + hz = 100000000; + |