diff options
author | Ben Skeggs <bskeggs@redhat.com> | 2020-12-04 09:01:06 +0300 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2021-02-11 04:49:59 +0300 |
commit | f8aeb13303c277102f73a06b9ac444ce9a57d07e (patch) | |
tree | 734248111705acc49680abd793f1eeffe1ba740c /drivers/gpu/drm/nouveau/nvkm/core | |
parent | b15147bd7170b5930ff3c5e8c17cbe03800ddcdb (diff) | |
download | linux-f8aeb13303c277102f73a06b9ac444ce9a57d07e.tar.xz |
drm/nouveau/nvdec: switch to instanced constructor
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Reviewed-by: Lyude Paul <lyude@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau/nvkm/core')
-rw-r--r-- | drivers/gpu/drm/nouveau/nvkm/core/subdev.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/drivers/gpu/drm/nouveau/nvkm/core/subdev.c b/drivers/gpu/drm/nouveau/nvkm/core/subdev.c index c1a3076eccf9..77fe4e098dfa 100644 --- a/drivers/gpu/drm/nouveau/nvkm/core/subdev.c +++ b/drivers/gpu/drm/nouveau/nvkm/core/subdev.c @@ -36,9 +36,6 @@ nvkm_subdev_type[NVKM_SUBDEV_NR] = { [NVKM_ENGINE_NVENC0 ] = "nvenc0", [NVKM_ENGINE_NVENC1 ] = "nvenc1", [NVKM_ENGINE_NVENC2 ] = "nvenc2", - [NVKM_ENGINE_NVDEC0 ] = "nvdec0", - [NVKM_ENGINE_NVDEC1 ] = "nvdec1", - [NVKM_ENGINE_NVDEC2 ] = "nvdec2", [NVKM_ENGINE_PM ] = "pm", [NVKM_ENGINE_SEC ] = "sec", [NVKM_ENGINE_SEC2 ] = "sec2", @@ -194,10 +191,6 @@ nvkm_subdev_ctor_(const struct nvkm_subdev_func *func, bool old, subdev->type = NVKM_ENGINE_NVENC; subdev->inst = subdev->index - NVKM_ENGINE_NVENC0; break; - case NVKM_ENGINE_NVDEC0 ... NVKM_ENGINE_NVDEC_LAST: - subdev->type = NVKM_ENGINE_NVDEC; - subdev->inst = subdev->index - NVKM_ENGINE_NVDEC0; - break; default: break; } |