graph/nve4: do not crash if no power device present
PATCH 1/1 graph/nve4: 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 Alexandre Courbot <[email protected]>
--- nvkm/engine/graph/nve4.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
nvkm/engine/graph/nve4.c +2 -1
@@ -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)
Signature · 1 line
2.0.1