mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 03:40:35 +09:00
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:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user