forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-11 04dd17822334871b23ea2862f7798fb0e0007777
kernel/drivers/gpu/drm/nouveau/nvif/user.c
....@@ -25,16 +25,16 @@
2525 #include <nvif/class.h>
2626
2727 void
28
-nvif_user_fini(struct nvif_device *device)
28
+nvif_user_dtor(struct nvif_device *device)
2929 {
3030 if (device->user.func) {
31
- nvif_object_fini(&device->user.object);
31
+ nvif_object_dtor(&device->user.object);
3232 device->user.func = NULL;
3333 }
3434 }
3535
3636 int
37
-nvif_user_init(struct nvif_device *device)
37
+nvif_user_ctor(struct nvif_device *device, const char *name)
3838 {
3939 struct {
4040 s32 oclass;
....@@ -53,7 +53,8 @@
5353 if (cid < 0)
5454 return cid;
5555
56
- ret = nvif_object_init(&device->object, 0, users[cid].oclass, NULL, 0,
56
+ ret = nvif_object_ctor(&device->object, name ? name : "nvifUsermode",
57
+ 0, users[cid].oclass, NULL, 0,
5758 &device->user.object);
5859 if (ret)
5960 return ret;