bcm63xx: remove bcm_tag usage in kernel
Fixes #12292. SVN-Revision: 33670
This commit is contained in:
parent
8086b7a750
commit
fbe0af3237
7 changed files with 12 additions and 12 deletions
|
@ -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: "
|
||||
|
||||
|
@ -26,10 +26,10 @@
|
|||
+ 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;
|
||||
|
|
|
@ -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))
|
||||
|
|
|
@ -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))
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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: "
|
||||
|
|
|
@ -636,5 +636,5 @@
|
|||
+ }
|
||||
+
|
||||
/* 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 */
|
||||
|
|
|
@ -142,5 +142,5 @@
|
|||
+ }
|
||||
+
|
||||
/* 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 */
|
||||
|
|
Loading…
Reference in a new issue