Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -203,6 +203,7 @@ nve4_graph_init(struct nouveau_object *object)
	int gpc, tpc, rop;
	int ret, i;

	if (ppwr)
		ppwr->pgob(ppwr, false);

	ret = nouveau_graph_init(&priv->base);