Patchwork Fix board enables in a hacky way

login
register
about
Submitter Stefan Tauner
Date 2014-11-30 18:09:41
Message ID <1417370981-11358-1-git-send-email-stefan.tauner@alumni.tuwien.ac.at>
Download mbox | patch
Permalink /patch/4251/
State Superseded
Headers show

Comments

Stefan Tauner - 2014-11-30 18:09:41
I broke the board enable matching.
This is just a hack to get it working on non-coreboot boards.

Signed-off-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
---
 board_enable.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Patch

diff --git a/board_enable.c b/board_enable.c
index 1235bb8..38a966d 100644
--- a/board_enable.c
+++ b/board_enable.c
@@ -2532,10 +2532,10 @@  static const struct board_match *board_match_name(const char *vendor, const char
 	const struct board_match *partmatch = NULL;
 
 	for (; board->vendor_name; board++) {
-		if (!board->lb_vendor || strcasecmp(board->lb_vendor, vendor))
+		if (!board->vendor_name || strcasecmp(board->vendor_name, vendor))
 			continue;
 
-		if (!board->lb_part || strcasecmp(board->lb_part, model))
+		if (!board->board_name || strcasecmp(board->board_name, model))
 			continue;
 
 		if (!pci_dev_find(board->first_vendor, board->first_device)) {