asoc: codecs: bolero: Do not return error for unused gpio
If soundwire gpio is not used, then no need to return error if not able to get gpio data. Change-Id: I97705b49d3b01f99b7a4e91190a15ffb211d32f2 Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
This commit is contained in:
@@ -2957,7 +2957,8 @@ static int wsa_macro_probe(struct platform_device *pdev)
|
||||
__func__);
|
||||
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",
|
||||
__func__);
|
||||
return -EPROBE_DEFER;
|
||||
|
Reference in New Issue
Block a user