summaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/dmic.c
diff options
context:
space:
mode:
authorArnaud Pouliquen <arnaud.pouliquen@st.com>2017-07-25 10:48:14 +0200
committerMark Brown <broonie@kernel.org>2017-08-02 12:24:01 +0200
commit29685e207b37ad7f415e4bf21320076c025f3df1 (patch)
tree7df045955eb57cb0e73d2c5e94cb60eadd597e1b /sound/soc/codecs/dmic.c
parentASoC: Add bindings for DMIC codec driver (diff)
downloadlinux-29685e207b37ad7f415e4bf21320076c025f3df1.tar.xz
linux-29685e207b37ad7f415e4bf21320076c025f3df1.zip
ASoC: codec: add DT support in dmic codec
Add of_table to allows DT probing. Signed-off-by: Arnaud Pouliquen <arnaud.pouliquen@st.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/dmic.c')
-rw-r--r--sound/soc/codecs/dmic.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/sound/soc/codecs/dmic.c b/sound/soc/codecs/dmic.c
index c82b9dc41e9a..d50f142e2972 100644
--- a/sound/soc/codecs/dmic.c
+++ b/sound/soc/codecs/dmic.c
@@ -73,9 +73,15 @@ static int dmic_dev_remove(struct platform_device *pdev)
MODULE_ALIAS("platform:dmic-codec");
+static const struct of_device_id dmic_dev_match[] = {
+ {.compatible = "dmic-codec"},
+ {}
+};
+
static struct platform_driver dmic_driver = {
.driver = {
.name = "dmic-codec",
+ .of_match_table = dmic_dev_match,
},
.probe = dmic_dev_probe,
.remove = dmic_dev_remove,