mirror of
https://github.com/torvalds/linux.git
synced 2026-04-28 03:22:27 -04:00
drm/amdgpu: update the handle ptr in early_init
update the handle ptr to amdgpu_ip_block ptr for all functions pointers on early_init. Signed-off-by: Sunil Khatri <sunil.khatri@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
committed by
Alex Deucher
parent
1007264254
commit
146b085ead
@@ -968,7 +968,7 @@ static int dm_set_powergating_state(void *handle,
|
||||
}
|
||||
|
||||
/* Prototypes of private functions */
|
||||
static int dm_early_init(void *handle);
|
||||
static int dm_early_init(struct amdgpu_ip_block *ip_block);
|
||||
|
||||
/* Allocate memory for FBC compressed data */
|
||||
static void amdgpu_dm_fbc_init(struct drm_connector *connector)
|
||||
@@ -5256,9 +5256,9 @@ static int dm_init_microcode(struct amdgpu_device *adev)
|
||||
return r;
|
||||
}
|
||||
|
||||
static int dm_early_init(void *handle)
|
||||
static int dm_early_init(struct amdgpu_ip_block *ip_block)
|
||||
{
|
||||
struct amdgpu_device *adev = (struct amdgpu_device *)handle;
|
||||
struct amdgpu_device *adev = ip_block->adev;
|
||||
struct amdgpu_mode_info *mode_info = &adev->mode_info;
|
||||
struct atom_context *ctx = mode_info->atom_context;
|
||||
int index = GetIndexIntoMasterTable(DATA, Object_Header);
|
||||
|
||||
Reference in New Issue
Block a user