- no more users Signed-off-by: Ben Skeggs <bskeggs@xxxxxxxxxx> --- drivers/gpu/drm/nouveau/include/nvif/driverif.h | 3 +-- drivers/gpu/drm/nouveau/nvif/head.c | 3 +-- drivers/gpu/drm/nouveau/nvkm/engine/disp/udisp.c | 6 +++--- 3 files changed, 5 insertions(+), 7 deletions(-) diff --git a/drivers/gpu/drm/nouveau/include/nvif/driverif.h b/drivers/gpu/drm/nouveau/include/nvif/driverif.h index 7aa44e4fe729..e66d29b3db63 100644 --- a/drivers/gpu/drm/nouveau/include/nvif/driverif.h +++ b/drivers/gpu/drm/nouveau/include/nvif/driverif.h @@ -384,8 +384,7 @@ struct nvif_disp_impl { struct { u32 mask; int (*new)(struct nvif_disp_priv *, u8 id, - const struct nvif_head_impl **, struct nvif_head_priv **, - u64 handle); + const struct nvif_head_impl **, struct nvif_head_priv **); } head; struct { diff --git a/drivers/gpu/drm/nouveau/nvif/head.c b/drivers/gpu/drm/nouveau/nvif/head.c index 05f56169e6c3..0800eebb920a 100644 --- a/drivers/gpu/drm/nouveau/nvif/head.c +++ b/drivers/gpu/drm/nouveau/nvif/head.c @@ -55,8 +55,7 @@ nvif_head_ctor(struct nvif_disp *disp, const char *name, int id, struct nvif_hea { int ret; - ret = disp->impl->head.new(disp->priv, id, &head->impl, &head->priv, - nvif_handle(&head->object)); + ret = disp->impl->head.new(disp->priv, id, &head->impl, &head->priv); NVIF_ERRON(ret, &disp->object, "[NEW head id:%d]", id); if (ret) return ret; diff --git a/drivers/gpu/drm/nouveau/nvkm/engine/disp/udisp.c b/drivers/gpu/drm/nouveau/nvkm/engine/disp/udisp.c index 6a65b3bffc19..dc23fad17b81 100644 --- a/drivers/gpu/drm/nouveau/nvkm/engine/disp/udisp.c +++ b/drivers/gpu/drm/nouveau/nvkm/engine/disp/udisp.c @@ -80,8 +80,7 @@ nvkm_udisp_sclass(struct nvkm_object *object, int index, struct nvkm_oclass *scl static int nvkm_udisp_head_new(struct nvif_disp_priv *udisp, u8 id, - const struct nvif_head_impl **pimpl, struct nvif_head_priv **ppriv, - u64 handle) + const struct nvif_head_impl **pimpl, struct nvif_head_priv **ppriv) { struct nvkm_object *object; int ret; @@ -90,7 +89,8 @@ nvkm_udisp_head_new(struct nvif_disp_priv *udisp, u8 id, if (ret) return ret; - return nvkm_object_link_rb(udisp->object.client, &udisp->object, handle, object); + nvkm_object_link(&udisp->object, object); + return 0; } static int -- 2.41.0