Merge "asoc: bolero: Ensure va-macro is registered before other macros"
This commit is contained in:

committato da
Gerrit - the friendly Code Review server

commit
d36eef9148
@@ -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)
|
||||
|
Fai riferimento in un nuovo problema
Block a user