diff options
author | Ben Skeggs <bskeggs@redhat.com> | 2016-05-23 01:42:54 +0300 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2017-02-17 08:14:59 +0300 |
commit | 2c3af924fbee23544a6adc81a2bbe398132b472f (patch) | |
tree | 24b4dcdbb961596ba041cc6d4fc9a934789d56b6 /drivers/gpu/drm/nouveau/nouveau_nvif.c | |
parent | 03295eabdb95153be4777ff04cc4f1dec0d62bc4 (diff) | |
download | linux-2c3af924fbee23544a6adc81a2bbe398132b472f.tar.xz |
drm/nouveau/core/client: use standard object dtor/init/fini paths
Preparation for supporting subclients, and also good for consistency.
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau/nouveau_nvif.c')
-rw-r--r-- | drivers/gpu/drm/nouveau/nouveau_nvif.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_nvif.c b/drivers/gpu/drm/nouveau/nouveau_nvif.c index 15f0925ea13b..5219da4805b5 100644 --- a/drivers/gpu/drm/nouveau/nouveau_nvif.c +++ b/drivers/gpu/drm/nouveau/nouveau_nvif.c @@ -60,20 +60,24 @@ nvkm_client_ioctl(void *priv, bool super, void *data, u32 size, void **hack) static int nvkm_client_resume(void *priv) { - return nvkm_client_init(priv); + struct nvkm_client *client = priv; + return nvkm_object_init(&client->object); } static int nvkm_client_suspend(void *priv) { - return nvkm_client_fini(priv, true); + struct nvkm_client *client = priv; + return nvkm_object_fini(&client->object, true); } static void nvkm_client_driver_fini(void *priv) { struct nvkm_client *client = priv; - nvkm_client_del(&client); + struct nvkm_object *object = &client->object; + nvkm_object_fini(object, false); + nvkm_object_del(&object); } static int |