forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-04 1543e317f1da31b75942316931e8f491a8920811
kernel/drivers/gpu/drm/nouveau/nvif/disp.c
....@@ -27,13 +27,15 @@
2727 void
2828 nvif_disp_dtor(struct nvif_disp *disp)
2929 {
30
- nvif_object_fini(&disp->object);
30
+ nvif_object_dtor(&disp->object);
3131 }
3232
3333 int
34
-nvif_disp_ctor(struct nvif_device *device, s32 oclass, struct nvif_disp *disp)
34
+nvif_disp_ctor(struct nvif_device *device, const char *name, s32 oclass,
35
+ struct nvif_disp *disp)
3536 {
3637 static const struct nvif_mclass disps[] = {
38
+ { TU102_DISP, -1 },
3739 { GV100_DISP, -1 },
3840 { GP102_DISP, -1 },
3941 { GP100_DISP, -1 },
....@@ -55,6 +57,6 @@
5557 if (cid < 0)
5658 return cid;
5759
58
- return nvif_object_init(&device->object, 0, disps[cid].oclass,
59
- NULL, 0, &disp->object);
60
+ return nvif_object_ctor(&device->object, name ? name : "nvifDisp", 0,
61
+ disps[cid].oclass, NULL, 0, &disp->object);
6062 }