| .. | .. |
|---|
| 25 | 25 | #include <nvif/class.h> |
|---|
| 26 | 26 | |
|---|
| 27 | 27 | void |
|---|
| 28 | | -nvif_user_fini(struct nvif_device *device) |
|---|
| 28 | +nvif_user_dtor(struct nvif_device *device) |
|---|
| 29 | 29 | { |
|---|
| 30 | 30 | if (device->user.func) { |
|---|
| 31 | | - nvif_object_fini(&device->user.object); |
|---|
| 31 | + nvif_object_dtor(&device->user.object); |
|---|
| 32 | 32 | device->user.func = NULL; |
|---|
| 33 | 33 | } |
|---|
| 34 | 34 | } |
|---|
| 35 | 35 | |
|---|
| 36 | 36 | int |
|---|
| 37 | | -nvif_user_init(struct nvif_device *device) |
|---|
| 37 | +nvif_user_ctor(struct nvif_device *device, const char *name) |
|---|
| 38 | 38 | { |
|---|
| 39 | 39 | struct { |
|---|
| 40 | 40 | s32 oclass; |
|---|
| .. | .. |
|---|
| 53 | 53 | if (cid < 0) |
|---|
| 54 | 54 | return cid; |
|---|
| 55 | 55 | |
|---|
| 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, |
|---|
| 57 | 58 | &device->user.object); |
|---|
| 58 | 59 | if (ret) |
|---|
| 59 | 60 | return ret; |
|---|