mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-02 08:42:48 +00:00
Add support for matching solely on vendor id.
We will use this method with nouveau MFC after: 3 days
This commit is contained in:
parent
f29130e3c2
commit
c921ffc089
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=189915
@ -182,7 +182,10 @@ int drm_probe(device_t kdev, drm_pci_id_list_t *idlist)
|
||||
|
||||
id_entry = drm_find_description(vendor, device, idlist);
|
||||
if (id_entry != NULL) {
|
||||
device_set_desc(kdev, id_entry->name);
|
||||
if (!device_get_desc(kdev)) {
|
||||
DRM_DEBUG("desc : %s\n", device_get_desc(kdev));
|
||||
device_set_desc(kdev, id_entry->name);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
@ -290,7 +293,8 @@ drm_pci_id_list_t *drm_find_description(int vendor, int device,
|
||||
|
||||
for (i = 0; idlist[i].vendor != 0; i++) {
|
||||
if ((idlist[i].vendor == vendor) &&
|
||||
(idlist[i].device == device)) {
|
||||
((idlist[i].device == device) ||
|
||||
(idlist[i].device == 0))) {
|
||||
return &idlist[i];
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user