mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-12 07:37:31 -04:00
disp:msm: fix return type from runtime api
pm_runtime_get_sync api can return non-zero return value for success case. For such cases the IOCTL should return success. Change-Id: I5868cfc3c0cdeb63c3b2e68f1dcddadcd0aae9ce Signed-off-by: Abhijit Kulkarni <kabhijit@codeaurora.org>
This commit is contained in:
parent
9d87e36a77
commit
484d909f94
1 changed files with 2 additions and 0 deletions
|
|
@ -1593,6 +1593,8 @@ int msm_ioctl_power_ctrl(struct drm_device *dev, void *data,
|
|||
|
||||
if (rc < 0)
|
||||
ctx->enable_refcnt = old_cnt;
|
||||
else
|
||||
rc = 0;
|
||||
}
|
||||
|
||||
pr_debug("pid %d enable %d, refcnt %d, vote_req %d\n",
|
||||
|
|
|
|||
Loading…
Reference in a new issue