From: Lyude Paul Date: Sat, 14 Nov 2020 00:14:16 +0000 (-0500) Subject: drm/nouveau/kms/nv50-: Use nouveau_encoder->crtc in get_eld callback X-Git-Tag: howlett/maple/20220722_2~3755^2~9^2~3 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=b2b402789bb7897e6defb7e63f1570d9de439a13;p=users%2Fjedix%2Flinux-maple.git 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 Signed-off-by: Ben Skeggs --- 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;