projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5863e57
)
ASoC: codec: add DT support in dmic codec
author
Arnaud Pouliquen
<arnaud.pouliquen@st.com>
Tue, 25 Jul 2017 08:48:14 +0000
(10:48 +0200)
committer
Mark Brown
<broonie@kernel.org>
Wed, 2 Aug 2017 10:24:01 +0000
(11:24 +0100)
Add of_table to allows DT probing.
Signed-off-by: Arnaud Pouliquen <arnaud.pouliquen@st.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/dmic.c
patch
|
blob
|
blame
|
history
diff --git
a/sound/soc/codecs/dmic.c
b/sound/soc/codecs/dmic.c
index c82b9dc41e9a2b8ab2a3358ca96abc21dfd639cd..d50f142e29721ba09029e4c8318bee86360cbc03 100644
(file)
--- 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,