mirror of
https://github.com/torvalds/linux.git
synced 2026-04-18 14:53:58 -04:00
drm/amdgpu: Clean the functions pointer set as NULL
We dont need to set the functions to NULL which arent needed as global structure members are by default set to zero or NULL for pointers. Cc: Leo Liu <leo.liu@amd.com> 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
8231e3af96
commit
0016e87054
@@ -646,8 +646,6 @@ static int amdgpu_vkms_set_powergating_state(void *handle,
|
||||
|
||||
static const struct amd_ip_funcs amdgpu_vkms_ip_funcs = {
|
||||
.name = "amdgpu_vkms",
|
||||
.early_init = NULL,
|
||||
.late_init = NULL,
|
||||
.sw_init = amdgpu_vkms_sw_init,
|
||||
.sw_fini = amdgpu_vkms_sw_fini,
|
||||
.hw_init = amdgpu_vkms_hw_init,
|
||||
@@ -657,8 +655,6 @@ static const struct amd_ip_funcs amdgpu_vkms_ip_funcs = {
|
||||
.is_idle = amdgpu_vkms_is_idle,
|
||||
.set_clockgating_state = amdgpu_vkms_set_clockgating_state,
|
||||
.set_powergating_state = amdgpu_vkms_set_powergating_state,
|
||||
.dump_ip_state = NULL,
|
||||
.print_ip_state = NULL,
|
||||
};
|
||||
|
||||
const struct amdgpu_ip_block_version amdgpu_vkms_ip_block = {
|
||||
|
||||
Reference in New Issue
Block a user