]> git.baikalelectronics.ru Git - kernel.git/commit
hwspinlock: Add devm_xxx() APIs to request/free hwlock
authorBaolin Wang <baolin.wang@linaro.org>
Fri, 22 Jun 2018 08:08:59 +0000 (16:08 +0800)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Tue, 26 Jun 2018 20:27:58 +0000 (13:27 -0700)
commit9901d6193241b4c491290822d5452ad4882b8964
tree2e59dc9ca521e9a0720eef3313a881926b8b15d1
parentec31693c0c2d5aa57c9ff903dedfc665e0a1a9e8
hwspinlock: Add devm_xxx() APIs to request/free hwlock

This patch introduces some devm_xxx() APIs to help to request or free
the hwlocks, which will help to simplify the cleanup code for drivers
requesting one hwlock, ensuring that the hwlock is automatically freed
whenever the device is unbound.

Signed-off-by: Baolin Wang <baolin.wang@linaro.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
drivers/hwspinlock/hwspinlock_core.c
include/linux/hwspinlock.h