]> git.ipfire.org Git - thirdparty/linux.git/commit
devres: use guard(spinlock_irqsave) where applicable
authorDanilo Krummrich <dakr@kernel.org>
Mon, 2 Feb 2026 23:48:19 +0000 (00:48 +0100)
committerDanilo Krummrich <dakr@kernel.org>
Tue, 17 Mar 2026 22:58:39 +0000 (23:58 +0100)
commite19f3fed3c4cd523dffa87f3c2d6837aff538543
tree2992dd46ee8e9d4867f13db18b9404a51c1263da
parent55e329d0f7a0a92cf998cc6f20df6e46a4d6ab12
devres: use guard(spinlock_irqsave) where applicable

Use guard(spinlock_irqsave)(&dev->devres_lock) where it improves the
code.

Some places still use manual spin_lock_irqsave() and spin_unlock() as
changing it to use a scoped_guard() would result in unnecessary churn.

Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Link: https://patch.msgid.link/20260202235210.55176-7-dakr@kernel.org
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
drivers/base/devres.c