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

This disables runtime PM on module exit automatically for us, currently
we manually disable runtime PM which can be error-prone if not done
in the right order or missed in some exit path. This also allows us
to simplify the probe exit path and remove callbacks. Do that here.

While here, as we can now return right after registering our hwspinlock,
simply return directly and remove the extra debug message.

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