diff options
| author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | 2026-06-20 17:53:22 +0200 |
|---|---|---|
| committer | Lee Jones <lee@kernel.org> | 2026-07-02 15:53:23 +0100 |
| commit | f647a2266289a35eaa4865f629f2ab7046900d9b (patch) | |
| tree | adb4d5d3bb8308568bf8a2ffa032ef4733bfcb28 /scripts/git.orderFile | |
| parent | 10a5a70c02277a1c12999b669a1bd1922558338a (diff) | |
| download | linux-f647a2266289a35eaa4865f629f2ab7046900d9b.tar.gz linux-f647a2266289a35eaa4865f629f2ab7046900d9b.zip | |
leds: lp5860-spi: Fix an error handling path
If lp5860_device_init() fails, a missing mutex_destroy() should be called.
Use devm_mutex_init() instead of mutex_init() to fix it.
This also simplifies the remove function.
Fixes: f0a66563aa2d ("leds: Add support for TI LP5860 LED driver chip")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: https://patch.msgid.link/311792e767ab803d4744bc26155e6dac253d9b45.1781970783.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Lee Jones <lee@kernel.org>
Diffstat (limited to 'scripts/git.orderFile')
0 files changed, 0 insertions, 0 deletions
