hwspinlock: Let the PM runtime can be optional
authorBaolin Wang <baolin.wang@linaro.org>
Mon, 14 Oct 2019 07:07:44 +0000 (15:07 +0800)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Sat, 9 Nov 2019 00:42:00 +0000 (16:42 -0800)
commita6fc49051cdb847428edf189023b087c1b4fc598
treed36ff35ed3692da944687858906450e5ece87fc5
parentb2547dce4d4a23e8c4a2b0258e3bd31d43dddfad
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>
drivers/hwspinlock/hwspinlock_core.c