summaryrefslogtreecommitdiff
path: root/drm/dispnv04/crtc.c
diff options
context:
space:
mode:
authorAlexandre Courbot <acourbot@nvidia.com>2014-02-12 14:00:59 +0900
committerBen Skeggs <bskeggs@redhat.com>2014-02-18 10:40:21 +1000
commita330e9444a19d59bf4498a08ae928f66dd8d5482 (patch)
tree8557d3b0d2804a3c1eb73db7c926b3b108b27ed9 /drm/dispnv04/crtc.c
parentd6e17944d5849d4dc3cb089ba61ae764c0117d98 (diff)
drm: handle -EACCES runtime PM return code
pm_runtime_get*() may return -EACCES to indicate a device does not have runtime PM enabled. This is currently the case with platform devices on Nouveau, and is not an error in that context. Handle this case without failure. Signed-off-by: Alexandre Courbot <acourbot@nvidia.com> Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drm/dispnv04/crtc.c')
-rw-r--r--drm/dispnv04/crtc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drm/dispnv04/crtc.c b/drm/dispnv04/crtc.c
index 0e3270c3..1caef1fd 100644
--- a/drm/dispnv04/crtc.c
+++ b/drm/dispnv04/crtc.c
@@ -1048,7 +1048,7 @@ nouveau_crtc_set_config(struct drm_mode_set *set)
/* get a pm reference here */
ret = pm_runtime_get_sync(dev->dev);
- if (ret < 0)
+ if (ret < 0 && ret != -EACCES)
return ret;
ret = drm_crtc_helper_set_config(set);