mirror of
https://github.com/torvalds/linux.git
synced 2026-06-02 11:33:28 +02:00
ASoC: renesas: rz-ssi: Use dev variable in probe()
Replace '&pdev->dev' by 'dev' in probe(), this makes few error paths shorter. Reviewed-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com> Link: https://patch.msgid.link/20251114075856.4751-2-biju.das.jz@bp.renesas.com Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
8f0b4cce44
commit
d6c160d5e8
|
|
@ -1119,19 +1119,16 @@ static int rz_ssi_probe(struct platform_device *pdev)
|
|||
|
||||
audio_clk = devm_clk_get(dev, "audio_clk1");
|
||||
if (IS_ERR(audio_clk))
|
||||
return dev_err_probe(&pdev->dev, PTR_ERR(audio_clk),
|
||||
"no audio clk1");
|
||||
return dev_err_probe(dev, PTR_ERR(audio_clk), "no audio clk1");
|
||||
|
||||
ssi->audio_clk_1 = clk_get_rate(audio_clk);
|
||||
audio_clk = devm_clk_get(dev, "audio_clk2");
|
||||
if (IS_ERR(audio_clk))
|
||||
return dev_err_probe(&pdev->dev, PTR_ERR(audio_clk),
|
||||
"no audio clk2");
|
||||
return dev_err_probe(dev, PTR_ERR(audio_clk), "no audio clk2");
|
||||
|
||||
ssi->audio_clk_2 = clk_get_rate(audio_clk);
|
||||
if (!(ssi->audio_clk_1 || ssi->audio_clk_2))
|
||||
return dev_err_probe(&pdev->dev, -EINVAL,
|
||||
"no audio clk1 or audio clk2");
|
||||
return dev_err_probe(dev, -EINVAL, "no audio clk1 or audio clk2");
|
||||
|
||||
ssi->audio_mck = ssi->audio_clk_1 ? ssi->audio_clk_1 : ssi->audio_clk_2;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user