summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/nouveau/nouveau_nvif.c
diff options
context:
space:
mode:
authorBen Skeggs <bskeggs@redhat.com>2016-05-25 17:08:21 +1000
committerBen Skeggs <bskeggs@redhat.com>2017-02-17 15:15:00 +1000
commit7c413feb7f9907c72aad7ea8f43af8ca8893c2bc (patch)
tree56a09955ce805488e7f3fcdaafab31dcacd428a8 /drivers/gpu/drm/nouveau/nouveau_nvif.c
parent05da248bbe91fecb29e1f2fb9b978c4d2ee6da8e (diff)
downloadlwn-7c413feb7f9907c72aad7ea8f43af8ca8893c2bc.tar.gz
lwn-7c413feb7f9907c72aad7ea8f43af8ca8893c2bc.zip
drm/nouveau/core/client: pass notification callback to nvkm_client_new
Preparation for supporting subclients. 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.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_nvif.c b/drivers/gpu/drm/nouveau/nouveau_nvif.c
index 69341a65dc42..b3f29b1ce9ea 100644
--- a/drivers/gpu/drm/nouveau/nouveau_nvif.c
+++ b/drivers/gpu/drm/nouveau/nouveau_nvif.c
@@ -103,16 +103,8 @@ static int
nvkm_client_driver_init(const char *name, u64 device, const char *cfg,
const char *dbg, void **ppriv)
{
- struct nvkm_client *client;
- int ret;
-
- ret = nvkm_client_new(name, device, cfg, dbg, &client);
- *ppriv = client;
- if (ret)
- return ret;
-
- client->ntfy = nvkm_client_ntfy;
- return 0;
+ return nvkm_client_new(name, device, cfg, dbg, nvkm_client_ntfy,
+ (struct nvkm_client **)ppriv);
}
const struct nvif_driver