diff options
author | Ben Skeggs <bskeggs@redhat.com> | 2018-05-08 20:39:46 +1000 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2018-05-18 15:01:20 +1000 |
commit | 9fe4e177045f4b5af25d25859e30450ff1f18be9 (patch) | |
tree | 6b32e02427b9af302eeae460e137c9b28a57a821 /drivers/gpu/drm/nouveau/nvkm/engine/disp/rootnv50.c | |
parent | bf5d1a6b6a4489b7887589fca6321d4024da71c8 (diff) |
drm/nouveau/disp/nv50-: fetch mask of available sors during oneinit
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau/nvkm/engine/disp/rootnv50.c')
-rw-r--r-- | drivers/gpu/drm/nouveau/nvkm/engine/disp/rootnv50.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/nouveau/nvkm/engine/disp/rootnv50.c b/drivers/gpu/drm/nouveau/nvkm/engine/disp/rootnv50.c index 3fbaccd9569b..9d0b5b71d38a 100644 --- a/drivers/gpu/drm/nouveau/nvkm/engine/disp/rootnv50.c +++ b/drivers/gpu/drm/nouveau/nvkm/engine/disp/rootnv50.c @@ -433,7 +433,7 @@ nv50_disp_root_init(struct nv50_disp_root *root) } /* ... SOR caps */ - for (i = 0; i < disp->func->sor.nr; i++) { + for (i = 0; i < disp->sor.nr; i++) { tmp = nvkm_rd32(device, 0x61c000 + (i * 0x800)); nvkm_wr32(device, 0x6101e0 + (i * 0x04), tmp); } |