mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-05 18:14:07 +08:00
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>
This commit is contained in:
parent
1b38cf6b03
commit
b2b402789b
@ -644,7 +644,7 @@ nv50_audio_component_get_eld(struct device *kdev, int port, int dev_id,
|
|||||||
if (!nv_connector)
|
if (!nv_connector)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
nv_crtc = nouveau_crtc(encoder->crtc);
|
nv_crtc = nouveau_crtc(nv_encoder->crtc);
|
||||||
if (!nv_crtc || nv_encoder->or != port ||
|
if (!nv_crtc || nv_encoder->or != port ||
|
||||||
nv_crtc->index != dev_id)
|
nv_crtc->index != dev_id)
|
||||||
continue;
|
continue;
|
||||||
|
Loading…
Reference in New Issue
Block a user