forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-12-11 6778948f9de86c3cfaf36725a7c87dcff9ba247f
kernel/drivers/gpu/drm/nouveau/nvif/client.c
....@@ -48,9 +48,9 @@
4848 }
4949
5050 void
51
-nvif_client_fini(struct nvif_client *client)
51
+nvif_client_dtor(struct nvif_client *client)
5252 {
53
- nvif_object_fini(&client->object);
53
+ nvif_object_dtor(&client->object);
5454 if (client->driver) {
5555 if (client->driver->fini)
5656 client->driver->fini(client->object.priv);
....@@ -59,7 +59,7 @@
5959 }
6060
6161 int
62
-nvif_client_init(struct nvif_client *parent, const char *name, u64 device,
62
+nvif_client_ctor(struct nvif_client *parent, const char *name, u64 device,
6363 struct nvif_client *client)
6464 {
6565 struct nvif_client_v0 args = { .device = device };
....@@ -70,8 +70,9 @@
7070 int ret;
7171
7272 strncpy(args.name, name, sizeof(args.name));
73
- ret = nvif_object_init(parent != client ? &parent->object : NULL,
74
- 0, NVIF_CLASS_CLIENT, &args, sizeof(args),
73
+ ret = nvif_object_ctor(parent != client ? &parent->object : NULL,
74
+ name ? name : "nvifClient", 0,
75
+ NVIF_CLASS_CLIENT, &args, sizeof(args),
7576 &client->object);
7677 if (ret)
7778 return ret;
....@@ -88,6 +89,6 @@
8889 }
8990
9091 if (ret)
91
- nvif_client_fini(client);
92
+ nvif_client_dtor(client);
9293 return ret;
9394 }