]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: mediatek: mt6359: Fix regulator_dev_lookup() fails for id "LDO_VAUD18"
authorJiaxin Yu <jiaxin.yu@mediatek.com>
Fri, 20 Nov 2020 03:06:12 +0000 (11:06 +0800)
committerMark Brown <broonie@kernel.org>
Fri, 20 Nov 2020 13:48:29 +0000 (13:48 +0000)
commit9be89931958b20ea26fcaef14bd9bcddcab05bae
treed66122c4360677935cb7529b131ab91c5d37d519
parentdb2005c2b9274d93f568c662b7cf87361418e016
ASoC: mediatek: mt6359: Fix regulator_dev_lookup() fails for id "LDO_VAUD18"

Mt6359 platform device is instantiated by mfd_add_devices(). In the
case, dev->of_node is NULL so that always fails to get the regulator_dev.

Use regualator-name "vaud18" that in dts node instead of
"LDO_VAUD19-supply". So that we can get regulator_dev through
regulator_lookup_by_name() directly.

Fixes: 41e35f234ab4 ("ASoC: Fix vaud18 power leakage of mt6359")
Signed-off-by: Jiaxin Yu <jiaxin.yu@mediatek.com>
Link: https://lore.kernel.org/r/1605841573-1442-2-git-send-email-jiaxin.yu@mediatek.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/mt6359.c