summaryrefslogtreecommitdiff
path: root/target/linux/brcm63xx/patches-3.3/428-MIPS-BCM63XX-move-nvram-related-functions-into-their.patch
diff options
context:
space:
mode:
authorJonas Gorski <jogo@openwrt.org>2012-10-09 08:08:49 +0000
committerJonas Gorski <jogo@openwrt.org>2012-10-09 08:08:49 +0000
commitfbe0af32373d6cb427205efc3b0503b8b6f4ffe8 (patch)
tree46ff98cdaba1b214b6ce28846286aaaaf54fc6eb /target/linux/brcm63xx/patches-3.3/428-MIPS-BCM63XX-move-nvram-related-functions-into-their.patch
parent8086b7a75004e9f0ec71d5ffc9afce94a075087b (diff)
downloadmtk-20170518-fbe0af32373d6cb427205efc3b0503b8b6f4ffe8.zip
mtk-20170518-fbe0af32373d6cb427205efc3b0503b8b6f4ffe8.tar.gz
mtk-20170518-fbe0af32373d6cb427205efc3b0503b8b6f4ffe8.tar.bz2
bcm63xx: remove bcm_tag usage in kernel
Fixes #12292. SVN-Revision: 33670
Diffstat (limited to 'target/linux/brcm63xx/patches-3.3/428-MIPS-BCM63XX-move-nvram-related-functions-into-their.patch')
-rw-r--r--target/linux/brcm63xx/patches-3.3/428-MIPS-BCM63XX-move-nvram-related-functions-into-their.patch8
1 files changed, 4 insertions, 4 deletions
diff --git a/target/linux/brcm63xx/patches-3.3/428-MIPS-BCM63XX-move-nvram-related-functions-into-their.patch b/target/linux/brcm63xx/patches-3.3/428-MIPS-BCM63XX-move-nvram-related-functions-into-their.patch
index ff2a831..8ebbdb7 100644
--- a/target/linux/brcm63xx/patches-3.3/428-MIPS-BCM63XX-move-nvram-related-functions-into-their.patch
+++ b/target/linux/brcm63xx/patches-3.3/428-MIPS-BCM63XX-move-nvram-related-functions-into-their.patch
@@ -91,12 +91,12 @@ Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
+ char *board_name = (char *)bcm63xx_nvram_get_name();
/* check if bcm_tag is at 64k offset */
-- if (strncmp(nvram.name, tag->boardid, BOARDID_LEN) != 0) {
-+ if (strncmp(board_name, tag->boardid, BOARDID_LEN) != 0) {
+- if (strncmp(nvram.name, tag->board_id, BOARDID_LEN) != 0) {
++ if (strncmp(board_name, tag->board_id, BOARDID_LEN) != 0) {
/* else try 128k */
tag = (struct bcm_tag *)(boot_addr + CFE_OFFSET_128K);
-- if (strncmp(nvram.name, tag->boardid, BOARDID_LEN) != 0) {
-+ if (strncmp(board_name, tag->boardid, BOARDID_LEN) != 0) {
+- if (strncmp(nvram.name, tag->board_id, BOARDID_LEN) != 0) {
++ if (strncmp(board_name, tag->board_id, BOARDID_LEN) != 0) {
/* No tag found */
printk(KERN_DEBUG "No bcm_tag found!\n");
return;