mirror of
https://github.com/X11Libre/xf86-video-amdgpu.git
synced 2026-03-24 01:24:31 +00:00
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:
committed by
Enrico Weigelt
parent
747e057583
commit
f1d32a31ea
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user