bcm63xx: remove bcm_tag usage in kernel
[openwrt/svn-archive/archive.git] / target / linux / brcm63xx / patches-3.3 / 304-boardid_fixup.patch
index 0c2fab57538ffb7273f0a92da5dae863b6cf8077..3b9e23ef7d376417eea9b6b32b75d5aea0f0f8f4 100644 (file)
@@ -4,7 +4,7 @@
  #include <bcm63xx_dev_pcmcia.h>
  #include <bcm63xx_dev_spi.h>
  #include <board_bcm963xx.h>
-+#include <bcm_tag.h>
++#include <bcm963xx_tag.h>
  
  #define PFX   "board_bcm963xx: "
  
 +      struct bcm_tag *tag = (struct bcm_tag *)(boot_addr + CFE_OFFSET_64K);
 +
 +      /* check if bcm_tag is at 64k offset */
-+      if (strncmp(nvram.name, tag->boardid, BOARDID_LEN) != 0) {
++      if (strncmp(nvram.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(nvram.name, tag->board_id, BOARDID_LEN) != 0) {
 +                      /* No tag found */
 +                      printk(KERN_DEBUG "No bcm_tag found!\n");
 +                      return;