hwspinlock: omap: Use devm_hwspin_lock_register() helper
authorAndrew Davis <afd@ti.com>
Thu, 8 Feb 2024 16:51:13 +0000 (10:51 -0600)
committerBjorn Andersson <andersson@kernel.org>
Wed, 6 Mar 2024 04:01:14 +0000 (20:01 -0800)
commit8781ec87795a8812b22579ba7ccdc0fdc16ba003
treefc20802833803d75d7d46379d6cca5e6c60d9264
parent25f7d74d451484fc09772fc276b161d1a6bc64b6
hwspinlock: omap: Use devm_hwspin_lock_register() helper

This will unregister the HW spinlock on module exit automatically for us,
currently we manually unregister which can be error-prone if not done in
the right order. This also allows us to remove the remove callback.
Do that here.

Signed-off-by: Andrew Davis <afd@ti.com>
Link: https://lore.kernel.org/r/20240208165114.63148-3-afd@ti.com
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
drivers/hwspinlock/omap_hwspinlock.c