diff options
author | Baolin Wang <baolin.wang@linaro.org> | 2019-10-14 15:07:44 +0800 |
---|---|---|
committer | Bjorn Andersson <bjorn.andersson@linaro.org> | 2019-11-08 16:42:00 -0800 |
commit | a6fc49051cdb847428edf189023b087c1b4fc598 (patch) | |
tree | d36ff35ed3692da944687858906450e5ece87fc5 /drivers/hwspinlock/sprd_hwspinlock.c | |
parent | b2547dce4d4a23e8c4a2b0258e3bd31d43dddfad (diff) |
hwspinlock: Let the PM runtime can be optional
Now some hwspinlock controllers did not have the requirement to implement
the PM runtime, but drivers must enable the PM runtime to comply with the
hwspinlock core.
Thus we can change the PM runtime support to be optional by validating
the -EACCES error number which means the PM runtime is not enabled, and
removing the return value validating of pm_runtime_put(). So that we
can remove some redundant PM runtime code in drivers.
Signed-off-by: Baolin Wang <baolin.wang@linaro.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Diffstat (limited to 'drivers/hwspinlock/sprd_hwspinlock.c')
0 files changed, 0 insertions, 0 deletions