drm/nouveau: handle -EACCES runtime PM return code
authorAlexandre Courbot <acourbot@nvidia.com>
Wed, 12 Feb 2014 05:00:59 +0000 (14:00 +0900)
committerBen Skeggs <bskeggs@redhat.com>
Wed, 26 Mar 2014 03:59:32 +0000 (13:59 +1000)
commitb6c4285afa66f2f258a237771fd90905a194957d
tree73d59a5ca30c76ce4e47c24bace5f3256f3a3f3e
parentef98c1f7b37116ae45d892a23f46cffdda31773c
drm/nouveau: 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>
drivers/gpu/drm/nouveau/dispnv04/crtc.c
drivers/gpu/drm/nouveau/nouveau_connector.c
drivers/gpu/drm/nouveau/nouveau_drm.c