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)
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>

No differences found