diff options
-rw-r--r-- | src/intel/dev/intel_dev_info.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/intel/dev/intel_dev_info.c b/src/intel/dev/intel_dev_info.c index d4d8e0e5936..065d95cb65f 100644 --- a/src/intel/dev/intel_dev_info.c +++ b/src/intel/dev/intel_dev_info.c @@ -222,7 +222,12 @@ main(int argc, char *argv[]) } if (platform) { - int pci_id = intel_device_name_to_pci_device_id(platform); + int pci_id; + + if (strstr(platform, "0x") == platform) + pci_id = strtol(platform, NULL, 16); + else + pci_id = intel_device_name_to_pci_device_id(platform); struct intel_device_info devinfo; if (!intel_get_device_info_from_pci_id(pci_id, &devinfo)) |