diff options
| author | Felix Gu <ustc.gu@gmail.com> | 2026-03-19 00:12:35 +0800 |
|---|---|---|
| committer | Mark Brown <broonie@kernel.org> | 2026-03-23 14:51:59 +0000 |
| commit | a42c9b8b0c00ecd9b7467844f2fbfc766898bf54 (patch) | |
| tree | 08a53d126511f4aed2bd09d3b712fd442ea347c7 /include/linux/tc_act/git@git.tavy.me:linux.git | |
| parent | ef3d549e1deb3466c61f3b01d22fc3fe3e5efb08 (diff) | |
spi: sn-f-ospi: Use devm_mutex_init() to simplify code
Switch to devm_mutex_init() to handle mutex destruction automatically.
This simplifies the error paths in probe() and removes the need for an
explicit mutex_destroy() in remove() callback.
Signed-off-by: Felix Gu <ustc.gu@gmail.com>
Link: https://patch.msgid.link/20260319-sn-f-v1-2-33a6738d2da8@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include/linux/tc_act/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions
