Commit 3c43c362 authored by Ben Skeggs's avatar Ben Skeggs

drm/nouveau/kms/nv50-: convert core caps_init() to new push macros

Signed-off-by: default avatarBen Skeggs <bskeggs@redhat.com>
Reviewed-by: default avatarLyude Paul <lyude@redhat.com>
parent 5e691222
...@@ -66,15 +66,14 @@ core507d_ntfy_init(struct nouveau_bo *bo, u32 offset) ...@@ -66,15 +66,14 @@ core507d_ntfy_init(struct nouveau_bo *bo, u32 offset)
int int
core507d_caps_init(struct nouveau_drm *drm, struct nv50_disp *disp) core507d_caps_init(struct nouveau_drm *drm, struct nv50_disp *disp)
{ {
u32 *push = evo_wait(&disp->core->chan, 2); struct nvif_push *push = disp->core->chan.push;
int ret;
if (push) { if ((ret = PUSH_WAIT(push, 2)))
evo_mthd(push, 0x008c, 1); return ret;
evo_data(push, 0x0);
evo_kick(push, &disp->core->chan);
}
return 0; PUSH_NVSQ(push, NV507D, 0x008c, 0x00000000);
return PUSH_KICK(push);
} }
int int
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment