- first part of a rename
- later patches remove remaining usage

Signed-off-by: Ben Skeggs <bske...@nvidia.com>
---
 drivers/gpu/drm/nouveau/nouveau_drm.c | 6 +++---
 drivers/gpu/drm/nouveau/nouveau_drv.h | 5 ++++-
 2 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/drivers/gpu/drm/nouveau/nouveau_drm.c 
b/drivers/gpu/drm/nouveau/nouveau_drm.c
index 7e651779751d..be9088ed273e 100644
--- a/drivers/gpu/drm/nouveau/nouveau_drm.c
+++ b/drivers/gpu/drm/nouveau/nouveau_drm.c
@@ -621,7 +621,7 @@ nouveau_drm_device_init(struct drm_device *dev)
                goto fail_nvif;
        }
 
-       ret = nouveau_cli_init(drm, "DRM", &drm->client);
+       ret = nouveau_cli_init(drm, "DRM", &drm->cli);
        if (ret)
                goto fail_nvif;
 
@@ -686,7 +686,7 @@ nouveau_drm_device_init(struct drm_device *dev)
        nouveau_ttm_fini(drm);
 fail_ttm:
        nouveau_vga_fini(drm);
-       nouveau_cli_fini(&drm->client);
+       nouveau_cli_fini(&drm->cli);
 fail_nvif:
        nvif_mmu_dtor(&drm->mmu);
        nvif_device_dtor(&drm->device);
@@ -745,7 +745,7 @@ nouveau_drm_device_fini(struct drm_device *dev)
        }
        mutex_unlock(&drm->clients_lock);
 
-       nouveau_cli_fini(&drm->client);
+       nouveau_cli_fini(&drm->cli);
        nvif_mmu_dtor(&drm->mmu);
        nvif_device_dtor(&drm->device);
        nouveau_cli_fini(&drm->master);
diff --git a/drivers/gpu/drm/nouveau/nouveau_drv.h 
b/drivers/gpu/drm/nouveau/nouveau_drv.h
index a7079efe42f3..8f04f3630936 100644
--- a/drivers/gpu/drm/nouveau/nouveau_drv.h
+++ b/drivers/gpu/drm/nouveau/nouveau_drv.h
@@ -206,7 +206,10 @@ struct nouveau_drm {
        struct nvif_mmu mmu;
 
        struct nouveau_cli master;
-       struct nouveau_cli client;
+       union {
+               struct nouveau_cli client;
+               struct nouveau_cli cli;
+       };
        struct drm_device *dev;
 
        struct list_head clients;
-- 
2.41.0

Reply via email to