aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/nouveau/nouveau_nvif.c
diff options
context:
space:
mode:
authorBen Skeggs <bskeggs@redhat.com>2015-01-14 00:36:34 -0500
committerBen Skeggs <bskeggs@redhat.com>2015-01-21 21:18:07 -0500
commitbe83cd4ef9a2a56bd35550bf96146b7b837daf02 (patch)
tree7cd92cdbb6c9fa473f4b896e8bd22e9dc8cbc28e /drivers/gpu/drm/nouveau/nouveau_nvif.c
parent9719047b4d985ca7a46819956047cca04213d63e (diff)
drm/nouveau: finalise nvkm namespace switch (no binary change)
The namespace of NVKM is being changed to nvkm_ instead of nouveau_, which will be used for the DRM part of the driver. This is being done in order to make it very clear as to what part of the driver a given symbol belongs to, and as a minor step towards splitting the DRM driver out to be able to stand on its own (for virt). Because there's already a large amount of churn here anyway, this is as good a time as any to also switch to NVIDIA's device and chipset naming to ease collaboration with them. A comparison of objdump disassemblies proves no code changes. 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.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_nvif.c b/drivers/gpu/drm/nouveau/nouveau_nvif.c
index 7f7bd329425e..ca0ad9d1563d 100644
--- a/drivers/gpu/drm/nouveau/nouveau_nvif.c
+++ b/drivers/gpu/drm/nouveau/nouveau_nvif.c
@@ -60,22 +60,22 @@ nvkm_client_ioctl(void *priv, bool super, void *data, u32 size, void **hack)
60static int 60static int
61nvkm_client_resume(void *priv) 61nvkm_client_resume(void *priv)
62{ 62{
63 return nouveau_client_init(priv); 63 return nvkm_client_init(priv);
64} 64}
65 65
66static int 66static int
67nvkm_client_suspend(void *priv) 67nvkm_client_suspend(void *priv)
68{ 68{
69 return nouveau_client_fini(priv, true); 69 return nvkm_client_fini(priv, true);
70} 70}
71 71
72static void 72static void
73nvkm_client_driver_fini(void *priv) 73nvkm_client_driver_fini(void *priv)
74{ 74{
75 struct nouveau_object *client = priv; 75 struct nvkm_object *client = priv;
76 nouveau_client_fini(nv_client(client), false); 76 nvkm_client_fini(nv_client(client), false);
77 atomic_set(&client->refcount, 1); 77 atomic_set(&client->refcount, 1);
78 nouveau_object_ref(NULL, &client); 78 nvkm_object_ref(NULL, &client);
79} 79}
80 80
81static int 81static int
@@ -110,10 +110,10 @@ static int
110nvkm_client_driver_init(const char *name, u64 device, const char *cfg, 110nvkm_client_driver_init(const char *name, u64 device, const char *cfg,
111 const char *dbg, void **ppriv) 111 const char *dbg, void **ppriv)
112{ 112{
113 struct nouveau_client *client; 113 struct nvkm_client *client;
114 int ret; 114 int ret;
115 115
116 ret = nouveau_client_create(name, device, cfg, dbg, &client); 116 ret = nvkm_client_create(name, device, cfg, dbg, &client);
117 *ppriv = client; 117 *ppriv = client;
118 if (ret) 118 if (ret)
119 return ret; 119 return ret;