Commit 8781ec87 authored by Andrew Davis's avatar Andrew Davis Committed by Bjorn Andersson
Browse files

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: default avatarAndrew Davis <afd@ti.com>
Link: https://lore.kernel.org/r/20240208165114.63148-3-afd@ti.com


Signed-off-by: default avatarBjorn Andersson <andersson@kernel.org>
parent 25f7d74d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment