Merge "asoc: codecs: bolero: Do not return error for unused gpio"
This commit is contained in:

committed by
Gerrit - the friendly Code Review server

commit
75b962681c
@@ -3904,7 +3904,8 @@ static int rx_macro_probe(struct platform_device *pdev)
|
|||||||
__func__);
|
__func__);
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
if (msm_cdc_pinctrl_get_state(rx_priv->rx_swr_gpio_p) < 0) {
|
if (msm_cdc_pinctrl_get_state(rx_priv->rx_swr_gpio_p) < 0 &&
|
||||||
|
is_used_rx_swr_gpio) {
|
||||||
dev_err(&pdev->dev, "%s: failed to get swr pin state\n",
|
dev_err(&pdev->dev, "%s: failed to get swr pin state\n",
|
||||||
__func__);
|
__func__);
|
||||||
return -EPROBE_DEFER;
|
return -EPROBE_DEFER;
|
||||||
|
@@ -2395,7 +2395,8 @@ static int tx_macro_probe(struct platform_device *pdev)
|
|||||||
__func__);
|
__func__);
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
if (msm_cdc_pinctrl_get_state(tx_priv->tx_swr_gpio_p) < 0) {
|
if (msm_cdc_pinctrl_get_state(tx_priv->tx_swr_gpio_p) < 0 &&
|
||||||
|
is_used_tx_swr_gpio) {
|
||||||
dev_err(&pdev->dev, "%s: failed to get swr pin state\n",
|
dev_err(&pdev->dev, "%s: failed to get swr pin state\n",
|
||||||
__func__);
|
__func__);
|
||||||
return -EPROBE_DEFER;
|
return -EPROBE_DEFER;
|
||||||
|
@@ -3138,7 +3138,8 @@ static int wsa_macro_probe(struct platform_device *pdev)
|
|||||||
__func__);
|
__func__);
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
if (msm_cdc_pinctrl_get_state(wsa_priv->wsa_swr_gpio_p) < 0) {
|
if (msm_cdc_pinctrl_get_state(wsa_priv->wsa_swr_gpio_p) < 0 &&
|
||||||
|
is_used_wsa_swr_gpio) {
|
||||||
dev_err(&pdev->dev, "%s: failed to get swr pin state\n",
|
dev_err(&pdev->dev, "%s: failed to get swr pin state\n",
|
||||||
__func__);
|
__func__);
|
||||||
return -EPROBE_DEFER;
|
return -EPROBE_DEFER;
|
||||||
|
Reference in New Issue
Block a user