mirror of
https://github.com/torvalds/linux.git
synced 2026-09-23 22:14:03 +02:00
drm/hyperv: Explicitly set subvendor and subdevice for pci match array
.subvendor and .subdevice were set to 0 implicitly, so only devices with these two values set to 0 in hardware can probe automatically. Make this requirement explicit. While touching this array item, also make use of the pci macro designed for that case. Signed-off-by: Uwe Kleine-König (The Capable Hub) <u.kleine-koenig@baylibre.com> Reviewed-by: Michael Kelley <mhklinux@outlook.com> Signed-off-by: Hamza Mahfooz <hamzamahfooz@linux.microsoft.com> Link: https://patch.msgid.link/019450ffb519d02821364afca32b9f48bcd8d2b6.1782925276.git.u.kleine-koenig@baylibre.com
This commit is contained in:
parent
8c11cfc8c1
commit
4b08889d3b
|
|
@ -51,8 +51,8 @@ static void hv_drm_pci_remove(struct pci_dev *pdev)
|
|||
|
||||
static const struct pci_device_id hv_drm_pci_tbl[] = {
|
||||
{
|
||||
.vendor = PCI_VENDOR_ID_MICROSOFT,
|
||||
.device = PCI_DEVICE_ID_HYPERV_VIDEO,
|
||||
PCI_VDEVICE_SUB(MICROSOFT, PCI_DEVICE_ID_HYPERV_VIDEO,
|
||||
0, 0),
|
||||
},
|
||||
{ /* end of list */ }
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user