hwspinlock: u8500_hsem: Use devm_hwspin_lock_register() to register hwlock controller
commitacc98c1f2a1b4503588d3b1eb35db9cb76abdd89
authorBaolin Wang <baolin.wang@linaro.org>
Fri, 27 Sep 2019 08:27:43 +0000 (27 16:27 +0800)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Sat, 5 Oct 2019 03:20:41 +0000 (4 20:20 -0700)
tree0736438216ce10e3d831cb42ee841499f1bcb77e
parent637bcd19beeb9e40b8b64b41e8a8bdf03e918edd
hwspinlock: u8500_hsem: 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.

Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Baolin Wang <baolin.wang@linaro.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
drivers/hwspinlock/u8500_hsem.c