drm/nve4/graph: do not crash if no power device present
authorAlexandre Courbot <acourbot@nvidia.com>
Tue, 15 Jul 2014 01:36:11 +0000 (10:36 +0900)
committerBen Skeggs <bskeggs@redhat.com>
Sat, 9 Aug 2014 19:11:10 +0000 (05:11 +1000)
commit25856c0b04fd9ea616acaf3318d0db1cd70bb00a
tree48271cc7a9515191611d7846d84427f61f527f0b
parentec1afbf4e1025f74e636ada2e7da3963c8da4c06
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>
drivers/gpu/drm/nouveau/core/engine/graph/nve4.c