drm/nouveau/disp: convert to new-style nvkm_engine
[linux-2.6-block.git] / drivers / gpu / drm / nouveau / nvkm / engine / disp / cursnv50.c
index f3ce583fbcf2ccf2c1522292fc0dd433f1059362..225858e62cf655852d109cfef348a02f6233e167 100644 (file)
@@ -47,7 +47,7 @@ nv50_disp_curs_new(const struct nv50_disp_chan_func *func,
        if (nvif_unpack(args->v0, 0, 0, false)) {
                nvif_ioctl(parent, "create disp cursor vers %d head %d\n",
                           args->v0.version, args->v0.head);
-               if (args->v0.head > disp->head.nr)
+               if (args->v0.head > disp->base.head.nr)
                        return -EINVAL;
                head = args->v0.head;
        } else