forked from luck/tmp_suning_uos_patched
ASoC: fsl_ssi: Fix printing return code on clk error
Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Mark Brown <broonie@linaro.org>
This commit is contained in:
parent
aafa85e71a
commit
6873ee464a
@ -1176,7 +1176,8 @@ static int fsl_ssi_probe(struct platform_device *pdev)
|
||||
*/
|
||||
ssi_private->baudclk = devm_clk_get(&pdev->dev, "baud");
|
||||
if (IS_ERR(ssi_private->baudclk))
|
||||
dev_warn(&pdev->dev, "could not get baud clock: %d\n", ret);
|
||||
dev_warn(&pdev->dev, "could not get baud clock: %d\n",
|
||||
PTR_ERR(ssi_private->baudclk));
|
||||
else
|
||||
clk_prepare_enable(ssi_private->baudclk);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user