drmDevicePtr device;
char *tag;
- if (drmGetDevice(fd, &device) != 0)
+ if (drmGetDevice2(fd, 0, &device) != 0)
return NULL;
tag = drm_construct_id_path_tag(device);
if (default_tag == NULL)
goto err;
- num_devices = drmGetDevices(devices, MAX_DRM_DEVICES);
+ num_devices = drmGetDevices2(0, devices, MAX_DRM_DEVICES);
if (num_devices < 0)
goto err;
drmDevicePtr device;
int ret;
- if (drmGetDevice(fd, &device) == 0) {
+ if (drmGetDevice2(fd, 0, &device) == 0) {
if (device->bustype == DRM_BUS_PCI) {
*vendor_id = device->deviceinfo.pci->vendor_id;
*chip_id = device->deviceinfo.pci->device_id;