Re: [PATCH] drm/amdgpu: remove irq_src->data handling

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Mar 19, 2021 at 8:25 AM Christian König
<ckoenig.leichtzumerken@xxxxxxxxx> wrote:
>
> That is unused for quite some time now.
>
> Signed-off-by: Christian König <christian.koenig@xxxxxxx>

Reviewed-by: Alex Deucher <alexander.deucher@xxxxxxx>

> ---
>  drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c | 5 -----
>  drivers/gpu/drm/amd/amdgpu/amdgpu_irq.h | 1 -
>  2 files changed, 6 deletions(-)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c
> index af026109421a..03412543427a 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c
> @@ -382,11 +382,6 @@ void amdgpu_irq_fini(struct amdgpu_device *adev)
>
>                         kfree(src->enabled_types);
>                         src->enabled_types = NULL;
> -                       if (src->data) {
> -                               kfree(src->data);
> -                               kfree(src);
> -                               adev->irq.client[i].sources[j] = NULL;
> -                       }
>                 }
>                 kfree(adev->irq.client[i].sources);
>                 adev->irq.client[i].sources = NULL;
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_irq.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_irq.h
> index ac527e5deae6..cf6116648322 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_irq.h
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_irq.h
> @@ -62,7 +62,6 @@ struct amdgpu_irq_src {
>         unsigned                                num_types;
>         atomic_t                                *enabled_types;
>         const struct amdgpu_irq_src_funcs       *funcs;
> -       void *data;
>  };
>
>  struct amdgpu_irq_client {
> --
> 2.25.1
>
> _______________________________________________
> amd-gfx mailing list
> amd-gfx@xxxxxxxxxxxxxxxxxxxxx
> https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________
amd-gfx mailing list
amd-gfx@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/amd-gfx




[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux