drm/nouveau: fail runtime pm properly.
authorDave Airlie <airlied@redhat.com>
Wed, 26 Mar 2014 04:09:37 +0000 (14:09 +1000)
committerDave Airlie <airlied@redhat.com>
Thu, 27 Mar 2014 02:20:37 +0000 (02:20 +0000)
commitadbbdbac04f093c0abf946b1e93e4e5291808491
tree8c54c687948f03ff4a261550c9e5bd454fe6aab0
parent347cf10aed1657a2b385a95f92763a67062c5ad3
drm/nouveau: fail runtime pm properly.

If we were on a non-optimus device, we'd return -EINVAL, this would
lead to the over engineered runtime pm system to go into an error
state, subsequent get_sync's would fail, so we'd never be able
to open the device again.

(like really get_sync shouldn't fail if the device isn't powered
down).

Signed-off-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/nouveau/nouveau_drm.c