summaryrefslogtreecommitdiff
path: root/sound/soc/meson/aiu-acodec-ctrl.c
diff options
context:
space:
mode:
authorJerome Brunet <jbrunet@baylibre.com>2020-02-17 10:20:19 +0100
committerMark Brown <broonie@kernel.org>2020-02-17 18:22:21 +0000
commit0247142233239dc235f8239aab5c7991250d4e66 (patch)
tree1353d492de76ab6bcea1a83d4252fb998c49a32d /sound/soc/meson/aiu-acodec-ctrl.c
parentf07980d4ed60fbb35857b655c94b111f4ddf2abf (diff)
ASoC: meson: aiu: simplify component addition
Now that the component name is unique within ASoC, there is no need to hack the debugfs prefix to add more than one ASoC component to a linux device. Remove the unnecessary function and use snd_soc_register_component() directly. Signed-off-by: Jerome Brunet <jbrunet@baylibre.com> Link: https://lore.kernel.org/r/20200217092019.433402-1-jbrunet@baylibre.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/meson/aiu-acodec-ctrl.c')
-rw-r--r--sound/soc/meson/aiu-acodec-ctrl.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/sound/soc/meson/aiu-acodec-ctrl.c b/sound/soc/meson/aiu-acodec-ctrl.c
index b8e88b1a4fc8..7078197e0cc5 100644
--- a/sound/soc/meson/aiu-acodec-ctrl.c
+++ b/sound/soc/meson/aiu-acodec-ctrl.c
@@ -197,8 +197,7 @@ static const struct snd_soc_component_driver aiu_acodec_ctrl_component = {
int aiu_acodec_ctrl_register_component(struct device *dev)
{
- return aiu_add_component(dev, &aiu_acodec_ctrl_component,
- aiu_acodec_ctrl_dai_drv,
- ARRAY_SIZE(aiu_acodec_ctrl_dai_drv),
- "acodec");
+ return snd_soc_register_component(dev, &aiu_acodec_ctrl_component,
+ aiu_acodec_ctrl_dai_drv,
+ ARRAY_SIZE(aiu_acodec_ctrl_dai_drv));
}