bcm63xx: remove bcm_tag usage in kernel
authorJonas Gorski <jogo@openwrt.org>
Tue, 9 Oct 2012 08:08:49 +0000 (08:08 +0000)
committerJonas Gorski <jogo@openwrt.org>
Tue, 9 Oct 2012 08:08:49 +0000 (08:08 +0000)
Fixes #12292.

SVN-Revision: 33670

target/linux/brcm63xx/patches-3.3/304-boardid_fixup.patch
target/linux/brcm63xx/patches-3.3/401-MIPS-BCM63XX-register-ohci-device.patch
target/linux/brcm63xx/patches-3.3/403-MIPS-BCM63XX-register-ehci-device.patch
target/linux/brcm63xx/patches-3.3/428-MIPS-BCM63XX-move-nvram-related-functions-into-their.patch
target/linux/brcm63xx/patches-3.3/432-BCM63XX-allow-providing-fixup-data-in-board-data.patch
target/linux/brcm63xx/patches-3.3/501-board-NB4.patch
target/linux/brcm63xx/patches-3.3/528-board_nb6.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;
index 27ecc5a8b8a281bc8170fe20427413b0e4e1c428..33b1a39350dade41143102534847773bf000be23 100644 (file)
@@ -67,7 +67,7 @@ Subject: [PATCH 24/63] MIPS: BCM63XX: register ohci device.
  #include <bcm63xx_dev_spi.h>
 +#include <bcm63xx_dev_usb_ohci.h>
  #include <board_bcm963xx.h>
- #include <bcm_tag.h>
+ #include <bcm963xx_tag.h>
  
 @@ -916,6 +917,9 @@ int __init board_register_devices(void)
            !board_get_mac_address(board.enet1.mac_addr))
index cd5eb73cedc3929b039a1fe4ce01547d5ba42d7b..d6773d5657f3035bbd718e6bdd71c76fb412d7e7 100644 (file)
@@ -49,7 +49,7 @@ Subject: [PATCH 26/63] MIPS: BCM63XX: register ehci device.
  #include <bcm63xx_dev_usb_ohci.h>
 +#include <bcm63xx_dev_usb_ehci.h>
  #include <board_bcm963xx.h>
- #include <bcm_tag.h>
+ #include <bcm963xx_tag.h>
  
 @@ -917,6 +918,9 @@ int __init board_register_devices(void)
            !board_get_mac_address(board.enet1.mac_addr))
index ff2a831d84bedfde3c2b57a8c14955c6f83366e1..8ebbdb7374af97ad625fea9e06eb59406c751bc6 100644 (file)
@@ -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;
index 742d11566ec7969148007ba4da97f611d2479aee..e0e4a473804a0abf062c333c94f97bc48a17913f 100644 (file)
@@ -13,7 +13,7 @@ Subject: [PATCH 67/80] BCM63XX: allow providing fixup data in board data
 @@ -33,6 +33,7 @@
  #include <bcm63xx_dev_usb_ehci.h>
  #include <board_bcm963xx.h>
- #include <bcm_tag.h>
+ #include <bcm963xx_tag.h>
 +#include <pci_ath9k_fixup.h>
  
  #define PFX   "board_bcm963xx: "
index 2f96f4b1e3b16c6a23f1197d713ab7ec92bff16b..0f4c26a0b71479fb82dd2e4685c76bed4321ab99 100644 (file)
 +      }
 +
        /* check if bcm_tag is at 64k offset */
-       if (strncmp(board_name, tag->boardid, BOARDID_LEN) != 0) {
+       if (strncmp(board_name, tag->board_id, BOARDID_LEN) != 0) {
                /* else try 128k */
index e3f9382c098bc0f00a000cc61d411f1f91f45c08..58bd3efb7a4efe211f4f278e7c46b44a9cfdf677 100644 (file)
 +      }
 +
        /* check if bcm_tag is at 64k offset */
-       if (strncmp(board_name, tag->boardid, BOARDID_LEN) != 0) {
+       if (strncmp(board_name, tag->board_id, BOARDID_LEN) != 0) {
                /* else try 128k */