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>
This commit is contained in:
Ben Skeggs 2012-03-23 09:10:22 +10:00 committed by Dave Airlie
parent a1978f74da
commit c61205b24b

View File

@ -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;