ASoC: rk_codec_digital: Make clk_adc optional

It's optional on RK3588 platform which support dsm only.

Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: I3cbe3a3bb7789eab2a279403d359a58f1fd85c7b
This commit is contained in:
Sugar Zhang
2021-11-12 20:52:39 +08:00
committed by Tao Huang
parent e32d99016a
commit 800034979c

View File

@@ -1024,7 +1024,8 @@ static int rk_codec_digital_platform_probe(struct platform_device *pdev)
rcd->rc = devm_reset_control_get(&pdev->dev, "reset");
rcd->clk_adc = devm_clk_get(&pdev->dev, "adc");
/* optional on some platform */
rcd->clk_adc = devm_clk_get_optional(&pdev->dev, "adc");
if (IS_ERR(rcd->clk_adc))
return PTR_ERR(rcd->clk_adc);