aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/gpu
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2017-09-28 16:12:28 +1000
committerAlex Deucher <alexander.deucher@amd.com>2017-09-28 16:03:27 -0400
commit2b6a81f437a7cc8787bae5d7ef64bf77cf8bb0ec (patch)
tree0020b641d2dd179cf677ae1a74473f721be590bf /drivers/gpu
parentamdgpu/pp: slim down the pwr virus tables. (diff)
downloadwireguard-linux-2b6a81f437a7cc8787bae5d7ef64bf77cf8bb0ec.tar.xz
wireguard-linux-2b6a81f437a7cc8787bae5d7ef64bf77cf8bb0ec.zip
drm/amdgpu: use designated initialiser for thermal_irq_src.
This fixes the 0-day build warning. Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Dave Airlie <airlied@redhat.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu')
-rw-r--r--drivers/gpu/drm/amd/powerplay/hwmgr/hwmgr.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/hwmgr.c b/drivers/gpu/drm/amd/powerplay/hwmgr/hwmgr.c
index 73969f35846c..35e80c969737 100644
--- a/drivers/gpu/drm/amd/powerplay/hwmgr/hwmgr.c
+++ b/drivers/gpu/drm/amd/powerplay/hwmgr/hwmgr.c
@@ -124,9 +124,9 @@ static int phm_ctf_irq(void *private_data,
}
static const struct cgs_irq_src_funcs thermal_irq_src[3] = {
- {NULL, phm_thermal_l2h_irq},
- {NULL, phm_thermal_h2l_irq},
- {NULL, phm_ctf_irq}
+ { .handler = phm_thermal_l2h_irq },
+ { .handler = phm_thermal_h2l_irq },
+ { .handler = phm_ctf_irq }
};
int hwmgr_early_init(struct pp_instance *handle)