Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 29685e20 authored by Arnaud Pouliquen's avatar Arnaud Pouliquen Committed by Mark Brown
Browse files

ASoC: codec: add DT support in dmic codec



Add of_table to allows DT probing.

Signed-off-by: default avatarArnaud Pouliquen <arnaud.pouliquen@st.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 5863e57c
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -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,