aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu
diff options
context:
space:
mode:
authorBen Skeggs <bskeggs@redhat.com>2010-06-01 18:38:19 -0400
committerBen Skeggs <bskeggs@redhat.com>2010-07-12 20:13:00 -0400
commitfb4f56214dd632d90b8ac64d7781faeb4dd744c7 (patch)
treee053ad0613dd903fc30dc420aca74ef9299a1e73 /drivers/gpu
parentcd0b072f95b3dbee5d7b97f52edc40f00d5d28e1 (diff)
drm/nouveau: missed some braces
Luckily this had absolutely no effect whatsoever :) Reported-by: Marcin Slusarz <marcin.slusarz@gmail.com> Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu')
-rw-r--r--drivers/gpu/drm/nouveau/nouveau_mem.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_mem.c b/drivers/gpu/drm/nouveau/nouveau_mem.c
index bcf7ed32cd1c..206bd1670827 100644
--- a/drivers/gpu/drm/nouveau/nouveau_mem.c
+++ b/drivers/gpu/drm/nouveau/nouveau_mem.c
@@ -367,9 +367,10 @@ nouveau_mem_detect(struct drm_device *dev)
367 } else { 367 } else {
368 dev_priv->vram_size = nv_rd32(dev, NV04_FIFO_DATA); 368 dev_priv->vram_size = nv_rd32(dev, NV04_FIFO_DATA);
369 dev_priv->vram_size &= NV10_FIFO_DATA_RAM_AMOUNT_MB_MASK; 369 dev_priv->vram_size &= NV10_FIFO_DATA_RAM_AMOUNT_MB_MASK;
370 if (dev_priv->chipset == 0xaa || dev_priv->chipset == 0xac) 370 if (dev_priv->chipset == 0xaa || dev_priv->chipset == 0xac) {
371 dev_priv->vram_sys_base = nv_rd32(dev, 0x100e10); 371 dev_priv->vram_sys_base = nv_rd32(dev, 0x100e10);
372 dev_priv->vram_sys_base <<= 12; 372 dev_priv->vram_sys_base <<= 12;
373 }
373 } 374 }
374 375
375 NV_INFO(dev, "Detected %dMiB VRAM\n", (int)(dev_priv->vram_size >> 20)); 376 NV_INFO(dev, "Detected %dMiB VRAM\n", (int)(dev_priv->vram_size >> 20));