Merge "asoc: bolero: Ensure va-macro is registered before other macros"

This commit is contained in:
qctecmdr
2020-07-14 06:11:20 -07:00
committato da Gerrit - the friendly Code Review server
5 ha cambiato i file con 48 aggiunte e 1 eliminazioni

Vedi File

@@ -3251,6 +3251,12 @@ static int tx_macro_probe(struct platform_device *pdev)
u32 is_used_tx_swr_gpio = 1;
const char *is_used_tx_swr_gpio_dt = "qcom,is-used-swr-gpio";
if (!bolero_is_va_macro_registered(&pdev->dev)) {
dev_err(&pdev->dev,
"%s: va-macro not registered yet, defer\n", __func__);
return -EPROBE_DEFER;
}
tx_priv = devm_kzalloc(&pdev->dev, sizeof(struct tx_macro_priv),
GFP_KERNEL);
if (!tx_priv)