Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/drm/drm_drv.c
Show First 20 Lines • Show All 168 Lines • ▼ Show 20 Lines | if (pci_get_class(kdev) != PCIC_DISPLAY | ||||
return ENXIO; | return ENXIO; | ||||
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)) { | if (!device_get_desc(kdev)) { | ||||
DRM_DEBUG("desc : %s\n", device_get_desc(kdev)); | DRM_DEBUG("desc : %s\n", device_get_desc(kdev)); | ||||
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; | ||||
} | } | ||||
int drm_attach(device_t kdev, drm_pci_id_list_t *idlist) | int drm_attach(device_t kdev, drm_pci_id_list_t *idlist) | ||||
{ | { | ||||
struct drm_device *dev; | struct drm_device *dev; | ||||
▲ Show 20 Lines • Show All 648 Lines • Show Last 20 Lines |