diff options
| author | Yaroslav Furman <yaro330@gmail.com> | 2018-11-02 00:54:59 +0300 |
|---|---|---|
| committer | Davide Garberi <dade.garberi@gmail.com> | 2022-07-27 18:59:11 +0200 |
| commit | d6992e33c5141fa5258f0657e15bb7a36addcdbd (patch) | |
| tree | 7c404f58b92cea0f8a240dd6159437f3e35f76c8 | |
| parent | e57c07151d2abbe99813e0e2d451b560cea5e6d0 (diff) | |
sound: msm8996: Don't try to init wsa881x when it's not enabled
* Just return error, what's the point even trying?
Signed-off-by: Yaroslav Furman <yaro330@gmail.com>
Signed-off-by: Davide Garberi <dade.garberi@gmail.com>
| -rw-r--r-- | sound/soc/msm/msm8996.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sound/soc/msm/msm8996.c b/sound/soc/msm/msm8996.c index fb1b117daad7..63ab59b89197 100644 --- a/sound/soc/msm/msm8996.c +++ b/sound/soc/msm/msm8996.c @@ -8724,7 +8724,9 @@ static int msm8996_init_wsa_dev(struct platform_device *pdev, int found = 0; int i; int ret; - +#ifndef CONFIG_SND_SOC_WSA881X + return -EINVAL; +#endif /* Get maximum WSA device count for this platform */ ret = of_property_read_u32(pdev->dev.of_node, "qcom,wsa-max-devs", &wsa_max_devs); |
