summaryrefslogtreecommitdiffstats
path: root/drivers/gpu
diff options
context:
space:
mode:
authorBen Skeggs <bskeggs@redhat.com>2012-03-23 00:10:22 +0100
committerDave Airlie <airlied@redhat.com>2012-03-26 10:35:56 +0200
commitc61205b24b79cd3708e751ed9c33970f487686ab (patch)
treea83fa311dfd2f4900a65c4d2e41d623dc7816349 /drivers/gpu
parentgma500: medfield: fix build without CONFIG_BACKLIGHT_CLASS_DEVICE (diff)
downloadlinux-c61205b24b79cd3708e751ed9c33970f487686ab.tar.xz
linux-c61205b24b79cd3708e751ed9c33970f487686ab.zip
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')
-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)
if (ret)
goto out_pm;
- if (!dev_priv->noaccel) {
+ if (dev_priv->eng[NVOBJ_ENGINE_GR]) {
ret = nouveau_card_channel_init(dev);
if (ret)
goto out_fence;