OpenCloudOS-Kernel/sound/soc/mediatek
Tzung-Bi Shih 63ba8e4d04
ASoC: mediatek: mt8183: move card registration to the end of probe
mt8183_mt6358_ts3a227_max98357_dev_probe() does not return immediately
if devm_snd_soc_register_card() returns fail.  As a result, the rest of
code still get executed.

Two options to fix:
1. add an extra return statement if devm_snd_soc_register_card()
   returns fail
2. move devm_snd_soc_register_card() to the end of probe

Adopt option 2 which is more clear and common.

Signed-off-by: Tzung-Bi Shih <tzungbi@google.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
2019-05-23 14:34:43 +01:00
..
common ASoC: Mediatek: MT8183: fix compile error 2019-05-21 19:58:20 +01:00
mt2701 ASoC: mediatek: Fix UBSAN warning. 2019-03-19 12:51:13 +00:00
mt6797 ASoC: mediatek: Fix UBSAN warning. 2019-03-19 12:51:13 +00:00
mt8173 ASoC: mediatek: Fix UBSAN warning. 2019-03-19 12:51:13 +00:00
mt8183 ASoC: mediatek: mt8183: move card registration to the end of probe 2019-05-23 14:34:43 +01:00
Kconfig ASoC: Mediatek: MT8183: Fix build err while CONFIG_I2C set to module 2019-05-02 10:45:59 +09:00
Makefile ASoC: mediatek: mt8183: add platform driver 2019-01-25 18:05:10 +00:00