drop check for ODEV_ATTRIB_FD and ODEV_ATTRIB_PATH

These are always present for over a decade now. No need to keep
special hacks for really ancient Xservers.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
Enrico Weigelt, metux IT consult
2025-07-29 14:21:03 +02:00
committed by Enrico Weigelt
parent 747e057583
commit f1d32a31ea

View File

@@ -131,21 +131,17 @@ static int amdgpu_kernel_open_fd(ScrnInfoPtr pScrn,
dev->domain, dev->bus, dev->dev, dev->func);
if (platform_dev) {
#ifdef ODEV_ATTRIB_FD
fd = xf86_get_platform_device_int_attrib(platform_dev,
ODEV_ATTRIB_FD, -1);
if (fd != -1)
return fd;
#endif
#ifdef ODEV_ATTRIB_PATH
path = xf86_get_platform_device_attrib(platform_dev,
ODEV_ATTRIB_PATH);
fd = open(path, O_RDWR | O_CLOEXEC);
if (fd != -1)
return fd;
#endif
}
if (!amdgpu_kernel_mode_enabled(pScrn))