]> git.karo-electronics.de Git - linux-beck.git/commitdiff
drm/i915: use #defines for qemu subsystem ids
authorGerd Hoffmann <kraxel@redhat.com>
Mon, 13 Jun 2016 12:38:56 +0000 (14:38 +0200)
committerJani Nikula <jani.nikula@intel.com>
Mon, 13 Jun 2016 14:44:04 +0000 (17:44 +0300)
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1465821536-21312-1-git-send-email-kraxel@redhat.com
drivers/gpu/drm/i915/i915_drv.c

index 872c60608dbd096a4bf1cd16dc68d3ef109ad535..7985370dff2adb1f3ff5a09af3917e213e1f5247 100644 (file)
@@ -517,8 +517,10 @@ void intel_detect_pch(struct drm_device *dev)
                        } else if ((id == INTEL_PCH_P2X_DEVICE_ID_TYPE) ||
                                   (id == INTEL_PCH_P3X_DEVICE_ID_TYPE) ||
                                   ((id == INTEL_PCH_QEMU_DEVICE_ID_TYPE) &&
-                                   pch->subsystem_vendor == 0x1af4 &&
-                                   pch->subsystem_device == 0x1100)) {
+                                   pch->subsystem_vendor ==
+                                           PCI_SUBVENDOR_ID_REDHAT_QUMRANET &&
+                                   pch->subsystem_device ==
+                                           PCI_SUBDEVICE_ID_QEMU)) {
                                dev_priv->pch_type = intel_virt_detect_pch(dev);
                        } else
                                continue;