diff options
author | Ben Skeggs <bskeggs@redhat.com> | 2016-05-25 17:08:21 +1000 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2017-02-17 15:15:00 +1000 |
commit | 7c413feb7f9907c72aad7ea8f43af8ca8893c2bc (patch) | |
tree | 56a09955ce805488e7f3fcdaafab31dcacd428a8 /drivers/gpu/drm/nouveau/nouveau_nvif.c | |
parent | 05da248bbe91fecb29e1f2fb9b978c4d2ee6da8e (diff) | |
download | lwn-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.c | 12 |
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 |