summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
Diffstat (limited to 'util')
-rw-r--r--util/inteltool/inteltool.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/util/inteltool/inteltool.c b/util/inteltool/inteltool.c
index aadd0fb3c4..3fb7707a2a 100644
--- a/util/inteltool/inteltool.c
+++ b/util/inteltool/inteltool.c
@@ -773,13 +773,13 @@ int main(int argc, char *argv[])
}
gfx = pci_get_dev(pacc, 0, 0, 0x02, 0);
-
if (gfx) {
pci_fill_info(gfx, PCI_FILL_IDENT | PCI_FILL_BASES |
PCI_FILL_CLASS);
-
- if (gfx->vendor_id != PCI_VENDOR_ID_INTEL)
- gfx = 0;
+ if ((gfx->device_class & 0xff00) != 0x0300)
+ gfx = NULL;
+ else if (gfx->vendor_id != PCI_VENDOR_ID_INTEL)
+ gfx = NULL;
}
if (sb->device_id == PCI_DEVICE_ID_INTEL_BAYTRAIL_LPC) {