Skip to content
Snippets Groups Projects
Commit 25856c0b authored by Alexandre Courbot's avatar Alexandre Courbot Committed by Ben Skeggs
Browse files

drm/nve4/graph: do not crash if no power device present


Detect and workaround the absence of a power device so chips that do not
feature one (e.g. GK20A) can still use this driver.

Signed-off-by: default avatarAlexandre Courbot <acourbot@nvidia.com>
Signed-off-by: default avatarBen Skeggs <bskeggs@redhat.com>
parent ec1afbf4
No related branches found
No related tags found
No related merge requests found
......@@ -203,7 +203,8 @@ nve4_graph_init(struct nouveau_object *object)
int gpc, tpc, rop;
int ret, i;
ppwr->pgob(ppwr, false);
if (ppwr)
ppwr->pgob(ppwr, false);
ret = nouveau_graph_init(&priv->base);
if (ret)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment