Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/drm2/drm_os_freebsd.c
Show First 20 Lines • Show All 120 Lines • ▼ Show 20 Lines | drm_probe_helper(device_t kdev, const drm_pci_id_list_t *idlist) | ||||
id_entry = drm_find_description(vendor, device, idlist); | id_entry = drm_find_description(vendor, device, idlist); | ||||
if (id_entry != NULL) { | if (id_entry != NULL) { | ||||
if (device_get_desc(kdev) == NULL) { | if (device_get_desc(kdev) == NULL) { | ||||
DRM_DEBUG("%s desc: %s\n", | DRM_DEBUG("%s desc: %s\n", | ||||
device_get_nameunit(kdev), id_entry->name); | device_get_nameunit(kdev), id_entry->name); | ||||
device_set_desc(kdev, id_entry->name); | device_set_desc(kdev, id_entry->name); | ||||
} | } | ||||
return (0); | DRM_OBSOLETE(kdev); | ||||
return (-BUS_PROBE_GENERIC); | |||||
} | } | ||||
return (-ENXIO); | return (-ENXIO); | ||||
} | } | ||||
/* | /* | ||||
* drm_attach_helper: called by a driver at the end of its attach | * drm_attach_helper: called by a driver at the end of its attach | ||||
* method. | * method. | ||||
▲ Show 20 Lines • Show All 362 Lines • Show Last 20 Lines |