Skip to content

Commit

Permalink
ASoC: codec: add DT support in dmic codec
Browse files Browse the repository at this point in the history
Add of_table to allows DT probing.

Signed-off-by: Arnaud Pouliquen <arnaud.pouliquen@st.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
  • Loading branch information
Arnaud Pouliquen authored and Mark Brown committed Aug 2, 2017
1 parent 5863e57 commit 29685e2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions sound/soc/codecs/dmic.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 29685e2

Please sign in to comment.