Author: hailfinger Date: 2009-12-14 05:24:42 +0100 (Mon, 14 Dec 2009) New Revision: 802
Modified: trunk/board_enable.c Log: Use pci_fill_info() so device_class is valid. This is needed on NetBSD and probably other non-Linux platforms.
Signed-off-by: Jonathan A. Kollasch jakllsch@kollasch.net Acked-by: Carl-Daniel Hailfinger c-d.hailfinger.devel.2006@gmx.net
Modified: trunk/board_enable.c =================================================================== --- trunk/board_enable.c 2009-12-14 04:11:12 UTC (rev 801) +++ trunk/board_enable.c 2009-12-14 04:24:42 UTC (rev 802) @@ -605,7 +605,8 @@ int i, allowed;
/* First, look for a known LPC bridge */ - for (dev = pacc->devices; dev; dev = dev->next) + for (dev = pacc->devices; dev; dev = dev->next) { + pci_fill_info(dev, PCI_FILL_CLASS); if ((dev->vendor_id == 0x8086) && (dev->device_class == 0x0601)) { /* ISA Bridge */ /* Is this device in our list? */ @@ -616,6 +617,7 @@ if (intel_ich_gpio_table[i].id) break; } + }
if (!dev) { fprintf(stderr, "\nERROR: No Known Intel LPC Bridge found.\n");