Skip to content

Commit 5cdc75e

Browse files
committed
drm/nouveau: Use drm_crtc_vblank_crtc()
Replace the open coded drm_crtc_vblank_crtc() with the real thing. Cc: Karol Herbst <[email protected]> Cc: Lyude Paul <[email protected]> Cc: Danilo Krummrich <[email protected]> Cc: [email protected] Signed-off-by: Ville Syrjälä <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected] Reviewed-by: Lyude Paul <[email protected]>
1 parent d12e364 commit 5cdc75e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/nouveau/nouveau_display.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ static bool
8383
nouveau_display_scanoutpos_head(struct drm_crtc *crtc, int *vpos, int *hpos,
8484
ktime_t *stime, ktime_t *etime)
8585
{
86-
struct drm_vblank_crtc *vblank = &crtc->dev->vblank[drm_crtc_index(crtc)];
86+
struct drm_vblank_crtc *vblank = drm_crtc_vblank_crtc(crtc);
8787
struct nvif_head *head = &nouveau_crtc(crtc)->head;
8888
struct nvif_head_scanoutpos_v0 args;
8989
int retry = 20;

0 commit comments

Comments
 (0)