Commit 0530e39c authored by Jammy Zhou's avatar Jammy Zhou Committed by Michel Dänzer

Pass struct pci_device *pci_dev directly to amdgpu_get_scrninfo

Instead of throwing away the type information by passing it as a void*.
Signed-off-by: Michel Dänzer's avatarMichel Dänzer <>
Reviewed-by: default avatarAlex Deucher <>
parent edf72afe
......@@ -176,7 +176,7 @@ static Bool amdgpu_open_drm_master(ScrnInfoPtr pScrn, AMDGPUEntPtr pAMDGPUEnt,
return TRUE;
static Bool amdgpu_get_scrninfo(int entity_num, void *pci_dev)
static Bool amdgpu_get_scrninfo(int entity_num, struct pci_device *pci_dev)
ScrnInfoPtr pScrn = NULL;
EntityInfoPtr pEnt;
......@@ -266,7 +266,7 @@ static Bool
amdgpu_pci_probe(DriverPtr pDriver,
int entity_num, struct pci_device *device, intptr_t match_data)
return amdgpu_get_scrninfo(entity_num, (void *)device);
return amdgpu_get_scrninfo(entity_num, device);
static Bool AMDGPUDriverFunc(ScrnInfoPtr scrn, xorgDriverFuncOp op, void *data)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment