From: Emil Velikov <emil.velikov@xxxxxxxxxxxxx> Signed-off-by: Emil Velikov <emil.velikov at collabora.com> --- src/amdgpu_probe.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/amdgpu_probe.c b/src/amdgpu_probe.c index d1ad13f..8a16060 100644 --- a/src/amdgpu_probe.c +++ b/src/amdgpu_probe.c @@ -237,14 +237,9 @@ amdgpu_probe(ScrnInfoPtr pScrn, int entity_num, if (!amdgpu_device_setup(pScrn, pci_dev, dev, pPriv->ptr)) goto error; - - pAMDGPUEnt = pPriv->ptr; - pAMDGPUEnt->fd_ref = 1; - - } else { - pAMDGPUEnt = pPriv->ptr; - pAMDGPUEnt->fd_ref++; } + pAMDGPUEnt = pPriv->ptr; + pAMDGPUEnt->fd_ref++; xf86SetEntityInstanceForScreen(pScrn, pEnt->index, xf86GetNumEntityInstances(pEnt-> -- 2.16.0