From: Arnaud Pouliquen Date: Tue, 25 Jul 2017 08:48:14 +0000 (+0200) Subject: ASoC: codec: add DT support in dmic codec X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=29685e207b37ad7f415e4bf21320076c025f3df1;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git ASoC: codec: add DT support in dmic codec Add of_table to allows DT probing. Signed-off-by: Arnaud Pouliquen Signed-off-by: Mark Brown --- 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,