summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/nouveau/dispnv50/disp.c
diff options
context:
space:
mode:
authorLyude Paul <lyude@redhat.com>2020-11-13 19:14:16 -0500
committerBen Skeggs <bskeggs@redhat.com>2021-01-29 16:49:14 +1000
commitb2b402789bb7897e6defb7e63f1570d9de439a13 (patch)
tree87cfada5f05a4de68c80c75c8c939299dfdc53ff /drivers/gpu/drm/nouveau/dispnv50/disp.c
parent1b38cf6b03e92eac993f49419904a3e441d647e4 (diff)
downloadlinux-b2b402789bb7897e6defb7e63f1570d9de439a13.tar.bz2
drm/nouveau/kms/nv50-: Use nouveau_encoder->crtc in get_eld callback
drm_encoder->crtc is deprecated for atomic drivers, but nouveau_encoder->crtc is safe. Signed-off-by: Lyude Paul <lyude@redhat.com> Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau/dispnv50/disp.c')
-rw-r--r--drivers/gpu/drm/nouveau/dispnv50/disp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/nouveau/dispnv50/disp.c b/drivers/gpu/drm/nouveau/dispnv50/disp.c
index 205d30d9954e..d4b6f8366947 100644
--- a/drivers/gpu/drm/nouveau/dispnv50/disp.c
+++ b/drivers/gpu/drm/nouveau/dispnv50/disp.c
@@ -644,7 +644,7 @@ nv50_audio_component_get_eld(struct device *kdev, int port, int dev_id,
if (!nv_connector)
continue;
- nv_crtc = nouveau_crtc(encoder->crtc);
+ nv_crtc = nouveau_crtc(nv_encoder->crtc);
if (!nv_crtc || nv_encoder->or != port ||
nv_crtc->index != dev_id)
continue;