Commit 50be9e02 authored by Chunyan Zhang's avatar Chunyan Zhang Committed by Lee Jones
Browse files

leds: sc27xx: Move mutex_init() down



Move the mutex_init() to avoid redundant mutex_destroy() calls after
that for each time the probe fails.

Signed-off-by: default avatarChunyan Zhang <chunyan.zhang@unisoc.com>
Reviewed-by: default avatarBaolin Wang <baolin.wang@linux.alibaba.com>
Link: https://lore.kernel.org/r/20231013022010.854367-1-chunyan.zhang@unisoc.com


Signed-off-by: default avatarLee Jones <lee@kernel.org>
parent 259e33cb
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment