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)
commit9546c76c73a1ee8b662b09f7308bcb63d2cd0d51
treed66122c4360677935cb7529b131ab91c5d37d519
parent36b90846c5d52b0bab38a3a91794187a5b64e941
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: 64a70744b778 ("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