hwspinlock: sprd: Use devm_hwspin_lock_register() to register hwlock controller
commitb674a30bf8b0edf3b966e32dfcb2e00dfca5a823
authorBaolin Wang <baolin.wang@linaro.org>
Fri, 27 Sep 2019 07:10:47 +0000 (27 15:10 +0800)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Sat, 5 Oct 2019 04:10:26 +0000 (4 21:10 -0700)
tree1771023b65a92aa8e9c89c3281874eca9ed49ec8
parentb4d64193d41e52a5d35923bc5a0772d9de250092
hwspinlock: sprd: Use devm_hwspin_lock_register() to register hwlock controller

Use devm_hwspin_lock_register() to register the hwlock controller instead of
unregistering the hwlock controller explicitly when removing the device.

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