asoc: codecs: add child devices after completing initialization
In va, rx and wsa macros, move schedule_work call to add the child devices to the point later to where the parent initialization gets completed. Change-Id: I2095f1007beae253534b2ed44f988ce55fad6b75 Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
This commit is contained in:

committed by
Gerrit - the friendly Code Review server

parent
a5ca4621d9
commit
ea36f4ea68
@@ -3079,7 +3079,6 @@ static int lpass_cdc_wsa_macro_probe(struct platform_device *pdev)
|
||||
dev_err(&pdev->dev, "%s: register macro failed\n", __func__);
|
||||
goto reg_macro_fail;
|
||||
}
|
||||
schedule_work(&wsa_priv->lpass_cdc_wsa_macro_add_child_devices_work);
|
||||
|
||||
if (of_find_property(wsa_priv->dev->of_node, "#cooling-cells", NULL)) {
|
||||
ret = of_property_read_u32(pdev->dev.of_node,
|
||||
@@ -3111,7 +3110,7 @@ static int lpass_cdc_wsa_macro_probe(struct platform_device *pdev)
|
||||
pm_runtime_set_suspended(&pdev->dev);
|
||||
pm_suspend_ignore_children(&pdev->dev, true);
|
||||
pm_runtime_enable(&pdev->dev);
|
||||
|
||||
schedule_work(&wsa_priv->lpass_cdc_wsa_macro_add_child_devices_work);
|
||||
return ret;
|
||||
reg_macro_fail:
|
||||
mutex_destroy(&wsa_priv->mclk_lock);
|
||||
|
Reference in New Issue
Block a user