diff options
author | Ben Skeggs <bskeggs@nvidia.com> | 2024-07-26 07:38:26 +0300 |
---|---|---|
committer | Danilo Krummrich <dakr@kernel.org> | 2024-07-27 04:05:49 +0300 |
commit | 0df26c0d69dce1141218e0e5ed0ad378a0c6c058 (patch) | |
tree | 9c134a363861a855284475bec6cbcd15a2739f4f /drivers/gpu/drm/nouveau/nouveau_bo5039.c | |
parent | 034142a303fed2903957b06a7c91abdff5531bcf (diff) | |
download | linux-0df26c0d69dce1141218e0e5ed0ad378a0c6c058.tar.xz |
drm/nouveau: remove push pointer from nouveau_channel
The struct itself lives in nouveau_channel already, just use that.
Signed-off-by: Ben Skeggs <bskeggs@nvidia.com>
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20240726043828.58966-36-bskeggs@nvidia.com
Diffstat (limited to 'drivers/gpu/drm/nouveau/nouveau_bo5039.c')
-rw-r--r-- | drivers/gpu/drm/nouveau/nouveau_bo5039.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_bo5039.c b/drivers/gpu/drm/nouveau/nouveau_bo5039.c index 0a6b1fce1108..c3de17548d97 100644 --- a/drivers/gpu/drm/nouveau/nouveau_bo5039.c +++ b/drivers/gpu/drm/nouveau/nouveau_bo5039.c @@ -40,7 +40,7 @@ nv50_bo_move_m2mf(struct nouveau_channel *chan, struct ttm_buffer_object *bo, struct ttm_resource *old_reg, struct ttm_resource *new_reg) { struct nouveau_mem *mem = nouveau_mem(old_reg); - struct nvif_push *push = chan->chan.push; + struct nvif_push *push = &chan->chan.push; u64 length = new_reg->size; u64 src_offset = mem->vma[0].addr; u64 dst_offset = mem->vma[1].addr; @@ -136,7 +136,7 @@ nv50_bo_move_m2mf(struct nouveau_channel *chan, struct ttm_buffer_object *bo, int nv50_bo_move_init(struct nouveau_channel *chan, u32 handle) { - struct nvif_push *push = chan->chan.push; + struct nvif_push *push = &chan->chan.push; int ret; ret = PUSH_WAIT(push, 6); |