powerpc: sysdev: use lock guard for mutex
authorShrikanth Hegde <sshegde@linux.ibm.com>
Mon, 5 May 2025 07:53:33 +0000 (13:23 +0530)
committerMadhavan Srinivasan <maddy@linux.ibm.com>
Mon, 23 Jun 2025 04:27:11 +0000 (09:57 +0530)
commit52d4639d689059857b3d0494928dd5878cbdc395
tree06664fe97abb926f7e2dd5fed7425e23a21f847b
parent8ea7819f6ec5782918e4d15906fa259a371e6bdd
powerpc: sysdev: use lock guard for mutex

use guard(mutex) for scope based resource management of mutex
This would make the code simpler and easier to maintain.

More details on lock guards can be found at
https://lore.kernel.org/all/20230612093537.614161713@infradead.org/T/#u

Reviewed-by: Srikar Dronamraju <srikar@linux.ibm.com>
Signed-off-by: Shrikanth Hegde <sshegde@linux.ibm.com>
Tested-by: Venkat Rao Bagalkote <venkat88@linux.ibm.com>
Signed-off-by: Madhavan Srinivasan <maddy@linux.ibm.com>
Link: https://patch.msgid.link/20250505075333.184463-7-sshegde@linux.ibm.com
arch/powerpc/sysdev/fsl_mpic_timer_wakeup.c