mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-04-29 16:25:42 -04:00
ASoC: fsl_sai: fix incorrect mclk number in error message
In commit c3ecef21c3 ("ASoC: fsl_sai: add sai master mode support")
the loop was changed to start iterating from 1 instead of 0. The error
message however was not updated, reporting the wrong clock to the user.
Signed-off-by: Pieterjan Camerlynck <pieterjan.camerlynck@gmail.com>
Acked-by: Shengjiu Wang <shengjiu.wang@gmail.com>
Link: https://lore.kernel.org/r/20220813083353.8959-1-pieterjan.camerlynck@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
committed by
Mark Brown
parent
ea75deef1a
commit
dcdfa3471f
@@ -1306,7 +1306,7 @@ static int fsl_sai_probe(struct platform_device *pdev)
|
||||
sai->mclk_clk[i] = devm_clk_get(dev, tmp);
|
||||
if (IS_ERR(sai->mclk_clk[i])) {
|
||||
dev_err(dev, "failed to get mclk%d clock: %ld\n",
|
||||
i + 1, PTR_ERR(sai->mclk_clk[i]));
|
||||
i, PTR_ERR(sai->mclk_clk[i]));
|
||||
sai->mclk_clk[i] = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user