drm/nvd9/disp: stub some more api hooks so we don't oops on resume
authorBen Skeggs <bskeggs@redhat.com>
Thu, 25 Aug 2011 04:09:43 +0000 (14:09 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Tue, 20 Sep 2011 06:12:08 +0000 (16:12 +1000)
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nvd0_display.c

index 20ab2c249b82ede8715c190963740824f23f76e7..20072fb784a50051cc34babb74ad597516f3c458 100644 (file)
@@ -522,6 +522,16 @@ static const struct drm_crtc_funcs nvd0_crtc_func = {
        .destroy = nvd0_crtc_destroy,
 };
 
+static void
+nvd0_cursor_set_pos(struct nouveau_crtc *nv_crtc, int x, int y)
+{
+}
+
+static void
+nvd0_cursor_set_offset(struct nouveau_crtc *nv_crtc, uint32_t offset)
+{
+}
+
 static int
 nvd0_crtc_create(struct drm_device *dev, int index)
 {
@@ -536,6 +546,8 @@ nvd0_crtc_create(struct drm_device *dev, int index)
        nv_crtc->index = index;
        nv_crtc->set_dither = nvd0_crtc_set_dither;
        nv_crtc->set_scale = nvd0_crtc_set_scale;
+       nv_crtc->cursor.set_offset = nvd0_cursor_set_offset;
+       nv_crtc->cursor.set_pos = nvd0_cursor_set_pos;
        for (i = 0; i < 256; i++) {
                nv_crtc->lut.r[i] = i << 8;
                nv_crtc->lut.g[i] = i << 8;