mirror of
https://github.com/torvalds/linux.git
synced 2026-04-27 19:12:29 -04:00
drm/nouveau/dma: switch to instanced constructor
Signed-off-by: Ben Skeggs <bskeggs@redhat.com> Reviewed-by: Lyude Paul <lyude@redhat.com>
This commit is contained in:
@@ -104,7 +104,7 @@ nvkm_dma = {
|
||||
|
||||
int
|
||||
nvkm_dma_new_(const struct nvkm_dma_func *func, struct nvkm_device *device,
|
||||
int index, struct nvkm_dma **pdma)
|
||||
enum nvkm_subdev_type type, int inst, struct nvkm_dma **pdma)
|
||||
{
|
||||
struct nvkm_dma *dma;
|
||||
|
||||
@@ -112,5 +112,5 @@ nvkm_dma_new_(const struct nvkm_dma_func *func, struct nvkm_device *device,
|
||||
return -ENOMEM;
|
||||
dma->func = func;
|
||||
|
||||
return nvkm_engine_ctor(&nvkm_dma, device, index, true, &dma->engine);
|
||||
return nvkm_engine_ctor(&nvkm_dma, device, type, inst, true, &dma->engine);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user