summaryrefslogtreecommitdiff
path: root/linux-core/nv50_cursor.c
diff options
context:
space:
mode:
authorMaarten Maathuis <madman2003@gmail.com>2008-06-24 10:16:52 +0200
committerMaarten Maathuis <madman2003@gmail.com>2008-06-24 10:16:52 +0200
commit315fef7ee44f9ca565f158a6a84fd29b34e69fd8 (patch)
treebe9461573434863e0d0b3e6a94f6777f7021b3d0 /linux-core/nv50_cursor.c
parente7582cfff6cb561d8bdfcd640d6843cdbb6b3391 (diff)
NV50: fix cursor hide/show
Diffstat (limited to 'linux-core/nv50_cursor.c')
-rw-r--r--linux-core/nv50_cursor.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/linux-core/nv50_cursor.c b/linux-core/nv50_cursor.c
index 4196df6b..47ae11bb 100644
--- a/linux-core/nv50_cursor.c
+++ b/linux-core/nv50_cursor.c
@@ -126,6 +126,7 @@ static int nv50_cursor_set_bo(struct nv50_crtc *crtc, drm_handle_t handle)
crtc->cursor->show(crtc);
}
} else {
+ DRM_ERROR("Unable to find cursor bo with handle 0x%X\n", handle);
return -EINVAL;
}
@@ -151,9 +152,6 @@ int nv50_cursor_create(struct nv50_crtc *crtc)
crtc->cursor->enable = nv50_cursor_enable;
crtc->cursor->disable = nv50_cursor_disable;
- /* defaults */
- crtc->cursor->visible = true; /* won't happen until there is a cursor bo */
-
return 0;
}