drm/gf100-/gr: return non-fatal error code when fw not present
authorBen Skeggs <bskeggs@redhat.com>
Tue, 25 Nov 2014 23:03:15 +0000 (09:03 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Tue, 2 Dec 2014 05:44:07 +0000 (15:44 +1000)
This allows the module to load without acceleration.

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/core/engine/graph/nvc0.c

index 30fd1dc64f9307603e137c43d5f6bf0e76e05d4f..17251e4b9e8647c7dd52b4bc7eebbe052a485259 100644 (file)
@@ -1557,7 +1557,7 @@ nvc0_graph_ctor(struct nouveau_object *parent, struct nouveau_object *engine,
                    nvc0_graph_ctor_fw(priv, "fuc409d", &priv->fuc409d) ||
                    nvc0_graph_ctor_fw(priv, "fuc41ac", &priv->fuc41ac) ||
                    nvc0_graph_ctor_fw(priv, "fuc41ad", &priv->fuc41ad))
-                       return -EINVAL;
+                       return -ENODEV;
                priv->firmware = true;
        }