diff --git a/src/amdgpu_probe.c b/src/amdgpu_probe.c index e3f8c08fae937705daa98b37ebfded6199228e45..8cfde0319bd6a73908029cfee8efe60371503bed 100644 --- a/src/amdgpu_probe.c +++ b/src/amdgpu_probe.c @@ -88,22 +88,6 @@ static Bool amdgpu_device_matches(const drmDevicePtr device, static Bool amdgpu_kernel_mode_enabled(ScrnInfoPtr pScrn) { -#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) - AMDGPUEntPtr pAMDGPUEnt = AMDGPUEntPriv(pScrn); - const char *busIdString = pAMDGPUEnt->busid; - int ret = drmCheckModesettingSupported(busIdString); - - if (ret) { - if (xf86LoadKernelModule("amdgpukms")) - ret = drmCheckModesettingSupported(busIdString); - } - if (ret) { - xf86DrvMsgVerb(pScrn->scrnIndex, X_INFO, 0, - "[KMS] drm report modesetting isn't supported.\n"); - return FALSE; - } - -#endif xf86DrvMsgVerb(pScrn->scrnIndex, X_INFO, 0, "[KMS] Kernel modesetting enabled.\n"); return TRUE;