| .. | .. |
|---|
| 27 | 27 | void |
|---|
| 28 | 28 | nvif_disp_dtor(struct nvif_disp *disp) |
|---|
| 29 | 29 | { |
|---|
| 30 | | - nvif_object_fini(&disp->object); |
|---|
| 30 | + nvif_object_dtor(&disp->object); |
|---|
| 31 | 31 | } |
|---|
| 32 | 32 | |
|---|
| 33 | 33 | 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) |
|---|
| 35 | 36 | { |
|---|
| 36 | 37 | static const struct nvif_mclass disps[] = { |
|---|
| 38 | + { TU102_DISP, -1 }, |
|---|
| 37 | 39 | { GV100_DISP, -1 }, |
|---|
| 38 | 40 | { GP102_DISP, -1 }, |
|---|
| 39 | 41 | { GP100_DISP, -1 }, |
|---|
| .. | .. |
|---|
| 55 | 57 | if (cid < 0) |
|---|
| 56 | 58 | return cid; |
|---|
| 57 | 59 | |
|---|
| 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); |
|---|
| 60 | 62 | } |
|---|