diff options
author | Hidalgo Huang <hidalgo.huang@mediatek.com> | 2018-01-18 16:39:04 +0800 |
---|---|---|
committer | Amit Uttamchandani <amituttam@google.com> | 2018-01-25 23:43:23 +0000 |
commit | f442a6d61d065083f6aa53f8ceb38913d77ce633 (patch) | |
tree | 23d9f625bff12ebb3cc609e5fb43662e1f61ed45 | |
parent | ca568a8a8c9d688396213cff2121d7cf4d7ea33a (diff) | |
download | mt8516-v4.4-f442a6d61d065083f6aa53f8ceb38913d77ce633.tar.gz |
ASoC: mt8167-codec: fix potential probe error
It's unnecessary to fail the probe if optional dts property is absent.
Bug: None
Test: Verify audio record function.
Change-Id: I935e3c15a000c398dcaa56c8324318b6246a7604
Signed-off-by: Hidalgo Huang <hidalgo.huang@mediatek.com>
-rw-r--r-- | sound/soc/codecs/mt8167-codec.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/codecs/mt8167-codec.c b/sound/soc/codecs/mt8167-codec.c index dcae523975af..d917ffb39956 100644 --- a/sound/soc/codecs/mt8167-codec.c +++ b/sound/soc/codecs/mt8167-codec.c @@ -2041,7 +2041,7 @@ static int mt8167_codec_parse_dt(struct mt8167_codec_priv *codec_data) __func__, modules_dt_regmap_str[i]); devm_kfree(dev, codec_data); ret = -EPROBE_DEFER; - break; + return ret; } } @@ -2093,7 +2093,7 @@ static int mt8167_codec_parse_dt(struct mt8167_codec_priv *codec_data) if (ret) codec_data->micbias0_settle_time_us = 0; - return ret; + return 0; } static int mt8167_codec_probe(struct snd_soc_codec *codec) |