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/nvkm | |
parent | 05da248bbe91fecb29e1f2fb9b978c4d2ee6da8e (diff) | |
download | linux-stable-7c413feb7f9907c72aad7ea8f43af8ca8893c2bc.tar.gz linux-stable-7c413feb7f9907c72aad7ea8f43af8ca8893c2bc.tar.bz2 linux-stable-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/nvkm')
-rw-r--r-- | drivers/gpu/drm/nouveau/nvkm/core/client.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/gpu/drm/nouveau/nvkm/core/client.c b/drivers/gpu/drm/nouveau/nvkm/core/client.c index 3cde975816f3..4e2730cb1fec 100644 --- a/drivers/gpu/drm/nouveau/nvkm/core/client.c +++ b/drivers/gpu/drm/nouveau/nvkm/core/client.c @@ -238,7 +238,9 @@ nvkm_client = { int nvkm_client_new(const char *name, u64 device, const char *cfg, - const char *dbg, struct nvkm_client **pclient) + const char *dbg, + int (*ntfy)(const void *, u32, const void *, u32), + struct nvkm_client **pclient) { struct nvkm_oclass oclass = { .base = nvkm_uclient_sclass }; struct nvkm_client *client; @@ -252,5 +254,6 @@ nvkm_client_new(const char *name, u64 device, const char *cfg, client->device = device; client->debug = nvkm_dbgopt(dbg, "CLIENT"); client->objroot = RB_ROOT; + client->ntfy = ntfy; return 0; } |