diff options
Diffstat (limited to 'drm/nouveau/nvkm/subdev/instmem/nv40.c')
-rw-r--r-- | drm/nouveau/nvkm/subdev/instmem/nv40.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drm/nouveau/nvkm/subdev/instmem/nv40.c b/drm/nouveau/nvkm/subdev/instmem/nv40.c index a170ff9b3..c0543875e 100644 --- a/drm/nouveau/nvkm/subdev/instmem/nv40.c +++ b/drm/nouveau/nvkm/subdev/instmem/nv40.c @@ -243,13 +243,13 @@ nv40_instmem_new(struct nvkm_device *device, int index, *pimem = &imem->base; /* map bar */ - if (nv_device_resource_len(device, 2)) + if (device->func->resource_size(device, 2)) bar = 2; else bar = 3; - imem->iomem = ioremap(nv_device_resource_start(device, bar), - nv_device_resource_len(device, bar)); + imem->iomem = ioremap(device->func->resource_addr(device, bar), + device->func->resource_size(device, bar)); if (!imem->iomem) { nvkm_error(&imem->base.subdev, "unable to map PRAMIN BAR\n"); return -EFAULT; |