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:Chunyan Zhang <chunyan.zhang@unisoc.com> Reviewed-by:
Baolin Wang <baolin.wang@linux.alibaba.com> Link: https://lore.kernel.org/r/20231013022010.854367-1-chunyan.zhang@unisoc.comSigned-off-by:
Lee Jones <lee@kernel.org>
Showing
Please register or sign in to comment