diff options
author | Ben Skeggs <bskeggs@redhat.com> | 2017-05-19 23:59:34 +1000 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2017-06-16 14:04:47 +1000 |
commit | 4b2b42f8e910c65aceb8b2d12fe392a7b7955449 (patch) | |
tree | 3c1d9592a01b5d87fc4a7879785b74cbbf6bac41 /drivers/gpu/drm/nouveau/include | |
parent | 981a8162e2f8282c90f6523324bb51720699bc6a (diff) | |
download | linux-4b2b42f8e910c65aceb8b2d12fe392a7b7955449.tar.bz2 |
drm/nouveau/disp: delay output path / connector construction until oneinit()
This is to allow hw-specific code to instantiate output resources first,
so we can cull unsupported output paths based on them.
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau/include')
-rw-r--r-- | drivers/gpu/drm/nouveau/include/nvkm/engine/disp.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/gpu/drm/nouveau/include/nvkm/engine/disp.h b/drivers/gpu/drm/nouveau/include/nvkm/engine/disp.h index 970ae753968a..f17200ed3c72 100644 --- a/drivers/gpu/drm/nouveau/include/nvkm/engine/disp.h +++ b/drivers/gpu/drm/nouveau/include/nvkm/engine/disp.h @@ -8,7 +8,9 @@ struct nvkm_disp { const struct nvkm_disp_func *func; struct nvkm_engine engine; - struct nvkm_oproxy *client; + struct { + int nr; + } head; struct list_head outp; struct list_head conn; @@ -16,9 +18,7 @@ struct nvkm_disp { struct nvkm_event hpd; struct nvkm_event vblank; - struct { - int nr; - } head; + struct nvkm_oproxy *client; }; int nv04_disp_new(struct nvkm_device *, int, struct nvkm_disp **); |