[PATCH] drm/amdgpu: use designated initialiser for thermal_irq_src.
Alex Deucher
alexdeucher at gmail.com
Thu Sep 28 18:52:29 UTC 2017
On Thu, Sep 28, 2017 at 2:13 AM, Dave Airlie <airlied at gmail.com> wrote:
> From: Dave Airlie <airlied at redhat.com>
>
> This fixes the 0-day build warning.
>
> Signed-off-by: Dave Airlie <airlied at redhat.com>
Reviewed-by: Alex Deucher <alexander.deucher at amd.com>
> ---
> drivers/gpu/drm/amd/powerplay/hwmgr/hwmgr.c | 6 +++---
> 1 file 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 73969f3..35e80c9 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)
> --
> 2.9.4
>
> _______________________________________________
> amd-gfx mailing list
> amd-gfx at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/amd-gfx
More information about the amd-gfx
mailing list