]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
ASoC: mt6359: fix failed to parse DT properties
authorTzung-Bi Shih <tzungbi@google.com>
Tue, 8 Sep 2020 07:00:44 +0000 (15:00 +0800)
committerMark Brown <broonie@kernel.org>
Tue, 8 Sep 2020 12:55:01 +0000 (13:55 +0100)
commit6835302853169441069e11bc4642300c22009c2e
treee8586a73a54c3dcc46e6dccbb4f52df92acbe0b4
parent783560d02dd61aee20d1d00c1c061bcafea30264
ASoC: mt6359: fix failed to parse DT properties

Mt6359 platform device is instantiated by mfd_add_devices().  In the
case, dev->of_node is NULL so that mt6359_parse_dt() always fails to
parse the desired DT properties.

Gets the DT properties via dev->parent->of_node.

Fixes: 8061734ab654 ("ASoC: mediatek: mt6359: add codec driver")
Signed-off-by: Tzung-Bi Shih <tzungbi@google.com>
Link: https://lore.kernel.org/r/20200908070044.1142644-1-tzungbi@google.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/mt6359.c