diff options
author | Ben Skeggs <bskeggs@redhat.com> | 2012-07-10 20:44:20 -0400 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2012-10-02 23:12:47 -0400 |
commit | cb75d97e9c77743ecfcc43375be135a55a4d9b25 (patch) | |
tree | e7903f00db28b25a88d295dcc863f14b3d3bd707 /drivers/gpu/drm/nouveau/nv04_crtc.c | |
parent | 70790f4f819875e8f390871fd15bbbf823f28e1b (diff) |
drm/nouveau: implement devinit subdev, and new init table parser
v2:
- make sure not to execute display scripts unless resuming
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau/nv04_crtc.c')
-rw-r--r-- | drivers/gpu/drm/nouveau/nv04_crtc.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/gpu/drm/nouveau/nv04_crtc.c b/drivers/gpu/drm/nouveau/nv04_crtc.c index 93ca09b90da5..1d38968abcf1 100644 --- a/drivers/gpu/drm/nouveau/nv04_crtc.c +++ b/drivers/gpu/drm/nouveau/nv04_crtc.c | |||
@@ -251,8 +251,8 @@ nv_crtc_mode_set_vga(struct drm_crtc *crtc, struct drm_display_mode *mode) | |||
251 | struct nouveau_encoder *nv_encoder = nouveau_encoder(encoder); | 251 | struct nouveau_encoder *nv_encoder = nouveau_encoder(encoder); |
252 | 252 | ||
253 | if (encoder->crtc == crtc && | 253 | if (encoder->crtc == crtc && |
254 | (nv_encoder->dcb->type == OUTPUT_LVDS || | 254 | (nv_encoder->dcb->type == DCB_OUTPUT_LVDS || |
255 | nv_encoder->dcb->type == OUTPUT_TMDS)) | 255 | nv_encoder->dcb->type == DCB_OUTPUT_TMDS)) |
256 | fp_output = true; | 256 | fp_output = true; |
257 | } | 257 | } |
258 | 258 | ||
@@ -467,11 +467,11 @@ nv_crtc_mode_set_regs(struct drm_crtc *crtc, struct drm_display_mode * mode) | |||
467 | if (encoder->crtc != crtc) | 467 | if (encoder->crtc != crtc) |
468 | continue; | 468 | continue; |
469 | 469 | ||
470 | if (nv_encoder->dcb->type == OUTPUT_LVDS) | 470 | if (nv_encoder->dcb->type == DCB_OUTPUT_LVDS) |
471 | digital = lvds_output = true; | 471 | digital = lvds_output = true; |
472 | if (nv_encoder->dcb->type == OUTPUT_TV) | 472 | if (nv_encoder->dcb->type == DCB_OUTPUT_TV) |
473 | tv_output = true; | 473 | tv_output = true; |
474 | if (nv_encoder->dcb->type == OUTPUT_TMDS) | 474 | if (nv_encoder->dcb->type == DCB_OUTPUT_TMDS) |
475 | digital = tmds_output = true; | 475 | digital = tmds_output = true; |
476 | if (nv_encoder->dcb->location != DCB_LOC_ON_CHIP && digital) | 476 | if (nv_encoder->dcb->location != DCB_LOC_ON_CHIP && digital) |
477 | off_chip_digital = true; | 477 | off_chip_digital = true; |