Commit a99aaf2e authored by Easwar Hariharan's avatar Easwar Hariharan Committed by Wei Liu

Drivers: hv: vmbus: Use PCI_VENDOR_ID_MICROSOFT for better discoverability

pci_ids.h already defines PCI_VENDOR_ID_MICROSOFT, and is included via
linux/pci.h. Use the define instead of the magic number.
Signed-off-by: default avatarEaswar Hariharan <easwar.hariharan@microsoft.com>
Reviewed-by: default avatarMichael Kelley <mikelley@microsoft.com>
Link: https://lore.kernel.org/r/1663625084-2518-2-git-send-email-eahariha@linux.microsoft.comSigned-off-by: default avatarWei Liu <wei.liu@kernel.org>
parent e1a863cd
...@@ -2052,7 +2052,7 @@ struct hv_device *vmbus_device_create(const guid_t *type, ...@@ -2052,7 +2052,7 @@ struct hv_device *vmbus_device_create(const guid_t *type,
child_device_obj->channel = channel; child_device_obj->channel = channel;
guid_copy(&child_device_obj->dev_type, type); guid_copy(&child_device_obj->dev_type, type);
guid_copy(&child_device_obj->dev_instance, instance); guid_copy(&child_device_obj->dev_instance, instance);
child_device_obj->vendor_id = 0x1414; /* MSFT vendor ID */ child_device_obj->vendor_id = PCI_VENDOR_ID_MICROSOFT;
return child_device_obj; return child_device_obj;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment