aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/nouveau/nouveau_state.c
diff options
context:
space:
mode:
authorBen Skeggs <bskeggs@redhat.com>2012-03-22 19:10:22 -0400
committerDave Airlie <airlied@redhat.com>2012-03-26 04:35:56 -0400
commitc61205b24b79cd3708e751ed9c33970f487686ab (patch)
treea83fa311dfd2f4900a65c4d2e41d623dc7816349 /drivers/gpu/drm/nouveau/nouveau_state.c
parenta1978f74da69565a2e472394c7dcb2cfb31b3e45 (diff)
drm/nouveau: fix thinko causing init to fail on cards without accel
Signed-off-by: Ben Skeggs <bskeggs@redhat.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau/nouveau_state.c')
-rw-r--r--drivers/gpu/drm/nouveau/nouveau_state.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_state.c b/drivers/gpu/drm/nouveau/nouveau_state.c
index a3ae91fa8141..a4886b36d0fa 100644
--- a/drivers/gpu/drm/nouveau/nouveau_state.c
+++ b/drivers/gpu/drm/nouveau/nouveau_state.c
@@ -852,7 +852,7 @@ nouveau_card_init(struct drm_device *dev)
852 if (ret) 852 if (ret)
853 goto out_pm; 853 goto out_pm;
854 854
855 if (!dev_priv->noaccel) { 855 if (dev_priv->eng[NVOBJ_ENGINE_GR]) {
856 ret = nouveau_card_channel_init(dev); 856 ret = nouveau_card_channel_init(dev);
857 if (ret) 857 if (ret)
858 goto out_fence; 858 goto out_fence;