aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/nouveau/nvd0_display.c
diff options
context:
space:
mode:
authorBen Skeggs <bskeggs@redhat.com>2012-11-08 18:38:06 -0500
committerBen Skeggs <bskeggs@redhat.com>2012-11-28 18:57:50 -0500
commit7ebb38b556485449bfaa506a196439f6a6fd6ebd (patch)
tree05d7dd2db64a7c4def70207d3ee6750246fd4b02 /drivers/gpu/drm/nouveau/nvd0_display.c
parentef22c8bb7b3fac45919b7fde412d36d1a8367d51 (diff)
drm/nv50/disp: call into core for dac load detection
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau/nvd0_display.c')
-rw-r--r--drivers/gpu/drm/nouveau/nvd0_display.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/nouveau/nvd0_display.c b/drivers/gpu/drm/nouveau/nvd0_display.c
index 9bb28b030f4b..758daf709a99 100644
--- a/drivers/gpu/drm/nouveau/nvd0_display.c
+++ b/drivers/gpu/drm/nouveau/nvd0_display.c
@@ -1176,7 +1176,7 @@ nvd0_dac_detect(struct drm_encoder *encoder, struct drm_connector *connector)
1176{ 1176{
1177 struct nvd0_disp *disp = nvd0_disp(encoder->dev); 1177 struct nvd0_disp *disp = nvd0_disp(encoder->dev);
1178 int ret, or = nouveau_encoder(encoder)->or; 1178 int ret, or = nouveau_encoder(encoder)->or;
1179 u32 load; 1179 u32 load = 0;
1180 1180
1181 ret = nv_exec(disp->core, NV50_DISP_DAC_LOAD + or, &load, sizeof(load)); 1181 ret = nv_exec(disp->core, NV50_DISP_DAC_LOAD + or, &load, sizeof(load));
1182 if (ret || load != 7) 1182 if (ret || load != 7)