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: Alexandre Courbot <acourbot@nvidia.com> Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
This commit is contained in:
parent
ec1afbf4e1
commit
25856c0b04
1 changed files with 2 additions and 1 deletions
|
@ -203,6 +203,7 @@ nve4_graph_init(struct nouveau_object *object)
|
||||||
int gpc, tpc, rop;
|
int gpc, tpc, rop;
|
||||||
int ret, i;
|
int ret, i;
|
||||||
|
|
||||||
|
if (ppwr)
|
||||||
ppwr->pgob(ppwr, false);
|
ppwr->pgob(ppwr, false);
|
||||||
|
|
||||||
ret = nouveau_graph_init(&priv->base);
|
ret = nouveau_graph_init(&priv->base);
|
||||||
|
|
Loading…
Add table
Reference in a new issue