diff options
author | Ben Skeggs <bskeggs@redhat.com> | 2011-08-25 15:53:57 +1000 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2011-09-20 16:12:18 +1000 |
commit | 3dcbb02b3a9ad1722005290e7c9ac47097de517d (patch) | |
tree | 29542ff4783440dcd3e6d84ca057993e4768ec07 /drivers/gpu | |
parent | 84e2ad8b7b0e9f089d0f2ac9b1c32105bffb8b33 (diff) | |
download | talos-obmc-linux-3dcbb02b3a9ad1722005290e7c9ac47097de517d.tar.gz talos-obmc-linux-3dcbb02b3a9ad1722005290e7c9ac47097de517d.zip |
drm/nvc0/fifo: avoid touching missing subfifos
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/drm/nouveau/nvc0_fifo.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/nouveau/nvc0_fifo.c b/drivers/gpu/drm/nouveau/nvc0_fifo.c index 6f9f341c3e86..dcbe0d5d0241 100644 --- a/drivers/gpu/drm/nouveau/nvc0_fifo.c +++ b/drivers/gpu/drm/nouveau/nvc0_fifo.c @@ -322,7 +322,7 @@ nvc0_fifo_init(struct drm_device *dev) } /* PSUBFIFO[n] */ - for (i = 0; i < 3; i++) { + for (i = 0; i < priv->spoon_nr; i++) { nv_mask(dev, 0x04013c + (i * 0x2000), 0x10000100, 0x00000000); nv_wr32(dev, 0x040108 + (i * 0x2000), 0xffffffff); /* INTR */ nv_wr32(dev, 0x04010c + (i * 0x2000), 0xfffffeff); /* INTR_EN */ |