summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/nouveau/nouveau_fbcon.c
diff options
context:
space:
mode:
authorBen Skeggs <bskeggs@redhat.com>2012-07-11 13:05:01 +0400
committerBen Skeggs <bskeggs@redhat.com>2012-10-03 07:12:49 +0400
commit861d21074bbb141b0cc165a61c11f571571cda12 (patch)
treefd5755cab318f77276044a40bcc274a6f8fe1ec1 /drivers/gpu/drm/nouveau/nouveau_fbcon.c
parent0134a97979a0abc1c756b0fe491e074693c2bdf5 (diff)
downloadlinux-861d21074bbb141b0cc165a61c11f571571cda12.tar.xz
drm/nouveau/fb: merge fb/vram and port to subdev interfaces
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau/nouveau_fbcon.c')
-rw-r--r--drivers/gpu/drm/nouveau/nouveau_fbcon.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_fbcon.c b/drivers/gpu/drm/nouveau/nouveau_fbcon.c
index 9b078033ec19..f3f0b4c362cb 100644
--- a/drivers/gpu/drm/nouveau/nouveau_fbcon.c
+++ b/drivers/gpu/drm/nouveau/nouveau_fbcon.c
@@ -475,9 +475,9 @@ int nouveau_fbcon_init(struct drm_device *dev)
drm_fb_helper_single_add_all_connectors(&nfbdev->helper);
- if (dev_priv->vram_size <= 32 * 1024 * 1024)
+ if (nvfb_vram_size(dev) <= 32 * 1024 * 1024)
preferred_bpp = 8;
- else if (dev_priv->vram_size <= 64 * 1024 * 1024)
+ else if (nvfb_vram_size(dev) <= 64 * 1024 * 1024)
preferred_bpp = 16;
else
preferred_bpp = 32;