Skip to content

Commit

Permalink
ASoC: cs35l56: Fix illegal use of init_completion()
Browse files Browse the repository at this point in the history
Fix cs35l56_patch() to call reinit_completion() to reinitialize
the completion object.

It was incorrectly using init_completion().

Signed-off-by: Richard Fitzgerald <rf@opensource.cirrus.com>
Fixes: e496112 ("ASoC: cs35l56: Add driver for Cirrus Logic CS35L56")
Link: https://lore.kernel.org/r/20231006164405.253796-1-rf@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
  • Loading branch information
Richard Fitzgerald authored and Mark Brown committed Oct 9, 2023
1 parent 1426b9b commit af5fd12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/soc/codecs/cs35l56.c
Original file line number Diff line number Diff line change
Expand Up @@ -706,7 +706,7 @@ static void cs35l56_patch(struct cs35l56_private *cs35l56)

mutex_lock(&cs35l56->base.irq_lock);

init_completion(&cs35l56->init_completion);
reinit_completion(&cs35l56->init_completion);

cs35l56->soft_resetting = true;
cs35l56_system_reset(&cs35l56->base, !!cs35l56->sdw_peripheral);
Expand Down

0 comments on commit af5fd12

Please sign in to comment.