summaryrefslogtreecommitdiff
path: root/bin/nv_rsfunc.h
diff options
context:
space:
mode:
Diffstat (limited to 'bin/nv_rsfunc.h')
-rw-r--r--bin/nv_rsfunc.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/bin/nv_rsfunc.h b/bin/nv_rsfunc.h
index 2a36cd128..f234ccac7 100644
--- a/bin/nv_rsfunc.h
+++ b/bin/nv_rsfunc.h
@@ -8,10 +8,10 @@ nv_rsys(struct nvif_device *device, u64 addr)
if (device->info.family >= NV_DEVICE_INFO_V0_TESLA &&
device->info.family <= NV_DEVICE_INFO_V0_MAXWELL) {
CAST data;
- u32 pmem = nvif_rd32(device, 0x001700);
- nvif_wr32(device, 0x001700, 0x02000000 | (addr >> 16));
- data = RSYS(device, 0x700000 + (addr & 0xffffULL));
- nvif_wr32(device, 0x001700, pmem);
+ u32 pmem = nvif_rd32(&device->object, 0x001700);
+ nvif_wr32(&device->object, 0x001700, 0x02000000 | (addr >> 16));
+ data = RSYS(&device->object, 0x700000 + (addr & 0xffffULL));
+ nvif_wr32(&device->object, 0x001700, pmem);
return data;
} else {
printk("unsupported chipset\n");