mirror of
https://github.com/torvalds/linux.git
synced 2026-09-23 21:26:41 +02:00
ASoC: ti: omap-dmic: Use dev_err_probe() for error handling
Replace dev_err() with dev_err_probe() when handling clock lookup failures. This preserves the original error code and suppresses unnecessary deferred probe error messages. Signed-off-by: bui duc phuc <phucduc.bui@gmail.com> Acked-by: Jarkko Nikula <jarkko.nikula@bitmer.com> Link: https://patch.msgid.link/20260716103911.77652-7-phucduc.bui@gmail.com Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
3e8b2361c6
commit
fa1d248f16
|
|
@ -465,10 +465,9 @@ static int asoc_dmic_probe(struct platform_device *pdev)
|
|||
mutex_init(&dmic->mutex);
|
||||
|
||||
dmic->fclk = devm_clk_get(dmic->dev, "fck");
|
||||
if (IS_ERR(dmic->fclk)) {
|
||||
dev_err(dmic->dev, "can't get fck\n");
|
||||
return -ENODEV;
|
||||
}
|
||||
if (IS_ERR(dmic->fclk))
|
||||
return dev_err_probe(dmic->dev, PTR_ERR(dmic->fclk),
|
||||
"can't get fck\n");
|
||||
|
||||
res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "dma");
|
||||
if (!res) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user