From e2a6028da3eccac80337a17129174ae2d7716b66 Mon Sep 17 00:00:00 2001 From: hauke Date: Thu, 3 Jan 2013 01:53:30 +0000 Subject: brcm47xx: add a new version of the nvram rewrite patch This is the version like it was send for mainline inclusion. git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34988 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- .../520-MIPS-BCM47XX-fix-time-for-WL520G-and-other-200-MHz-C.patch | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'target/linux/brcm47xx/patches-3.6/520-MIPS-BCM47XX-fix-time-for-WL520G-and-other-200-MHz-C.patch') 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 2ae45e8f4..ff670e87a 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 #include #include -+#include ++#include 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; + -- cgit v1.2.3