diff options
author | Ben Skeggs <bskeggs@redhat.com> | 2010-06-01 18:38:19 -0400 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2010-07-12 20:13:00 -0400 |
commit | fb4f56214dd632d90b8ac64d7781faeb4dd744c7 (patch) | |
tree | e053ad0613dd903fc30dc420aca74ef9299a1e73 /drivers/gpu | |
parent | cd0b072f95b3dbee5d7b97f52edc40f00d5d28e1 (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.c | 3 |
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)); |