diff options
author | Ben Skeggs <bskeggs@redhat.com> | 2015-08-20 14:54:23 +1000 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2015-08-28 12:37:44 +1000 |
commit | eeeb40c6398c7a9d2b194038193d98e3d6068a2f (patch) | |
tree | 77336796ea85c47522c6c660878413f6095d59a5 /drm/nouveau/nvkm/subdev/devinit/fbmem.h | |
parent | 3429f5fd3a2e989f7c93e86ab7c6d8381162c011 (diff) | |
download | nouveau-eeeb40c6398c7a9d2b194038193d98e3d6068a2f.tar.gz |
device: cleaner abstraction for device resource functions
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drm/nouveau/nvkm/subdev/devinit/fbmem.h')
-rw-r--r-- | drm/nouveau/nvkm/subdev/devinit/fbmem.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drm/nouveau/nvkm/subdev/devinit/fbmem.h b/drm/nouveau/nvkm/subdev/devinit/fbmem.h index 4e484c40b..6c5bbff12 100644 --- a/drm/nouveau/nvkm/subdev/devinit/fbmem.h +++ b/drm/nouveau/nvkm/subdev/devinit/fbmem.h @@ -47,8 +47,8 @@ static inline struct io_mapping * fbmem_init(struct nvkm_device *dev) { - return io_mapping_create_wc(nv_device_resource_start(dev, 1), - nv_device_resource_len(dev, 1)); + return io_mapping_create_wc(dev->func->resource_addr(dev, 1), + dev->func->resource_size(dev, 1)); } static inline void |