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
@@ -2446,13 +2446,13 @@ static int lpass_cdc_va_macro_probe(struct platform_device *pdev)
|
||||
dev_err(&pdev->dev, "%s: register macro failed\n", __func__);
|
||||
goto reg_macro_fail;
|
||||
}
|
||||
if (is_used_va_swr_gpio)
|
||||
schedule_work(&va_priv->lpass_cdc_va_macro_add_child_devices_work);
|
||||
pm_runtime_set_autosuspend_delay(&pdev->dev, VA_AUTO_SUSPEND_DELAY);
|
||||
pm_runtime_use_autosuspend(&pdev->dev);
|
||||
pm_runtime_set_suspended(&pdev->dev);
|
||||
pm_suspend_ignore_children(&pdev->dev, true);
|
||||
pm_runtime_enable(&pdev->dev);
|
||||
if (is_used_va_swr_gpio)
|
||||
schedule_work(&va_priv->lpass_cdc_va_macro_add_child_devices_work);
|
||||
return ret;
|
||||
|
||||
reg_macro_fail:
|
||||
|
Reference in New Issue
Block a user