summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/nouveau/nouveau_bo.c
diff options
context:
space:
mode:
authorBen Skeggs <bskeggs@redhat.com>2013-03-04 13:01:21 +1000
committerBen Skeggs <bskeggs@redhat.com>2013-07-01 13:44:04 +1000
commitdceef5d87cc01358cc1434416f3272e2ddc3d97a (patch)
tree6d073077600739f296087e0e38d65e21d7074873 /drivers/gpu/drm/nouveau/nouveau_bo.c
parent54ecff3e1ad22fd44443acde7f27f213758fdddc (diff)
downloadblackbird-op-linux-dceef5d87cc01358cc1434416f3272e2ddc3d97a.tar.gz
blackbird-op-linux-dceef5d87cc01358cc1434416f3272e2ddc3d97a.zip
drm/nouveau/fb: initialise vram controller as pfb sub-object
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau/nouveau_bo.c')
-rw-r--r--drivers/gpu/drm/nouveau/nouveau_bo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_bo.c b/drivers/gpu/drm/nouveau/nouveau_bo.c
index 7ff10711a4d0..86eef68517cb 100644
--- a/drivers/gpu/drm/nouveau/nouveau_bo.c
+++ b/drivers/gpu/drm/nouveau/nouveau_bo.c
@@ -255,7 +255,7 @@ set_placement_range(struct nouveau_bo *nvbo, uint32_t type)
{
struct nouveau_drm *drm = nouveau_bdev(nvbo->bo.bdev);
struct nouveau_fb *pfb = nouveau_fb(drm->device);
- u32 vram_pages = pfb->ram.size >> PAGE_SHIFT;
+ u32 vram_pages = pfb->ram->size >> PAGE_SHIFT;
if (nv_device(drm->device)->card_type == NV_10 &&
nvbo->tile_mode && (type & TTM_PL_FLAG_VRAM) &&
OpenPOWER on IntegriCloud