ASoC: dmic: add DT module alias
authorJerome Brunet <jbrunet@baylibre.com>
Wed, 29 Aug 2018 15:00:49 +0000 (17:00 +0200)
committerMark Brown <broonie@kernel.org>
Wed, 29 Aug 2018 15:04:16 +0000 (16:04 +0100)
Before this patch the only alias provided by the dmic module is:
alias:          platform:dmic-codec

Device instantiated from DT will not probe automatically with this

After this patch, here is the new alias list:
alias:          platform:dmic-codec
alias:          of:N*T*Cdmic-codecC*
alias:          of:N*T*Cdmic-codec

Now the dmic codec probes automatically when instantiated from DT.

Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/dmic.c

index 8c4926df92862f4e3c0a0bd502b51cf7d4c2a37b..71322e0410ee7623bc7551f8f868a03e5c7f1aaa 100644 (file)
@@ -148,6 +148,7 @@ static const struct of_device_id dmic_dev_match[] = {
        {.compatible = "dmic-codec"},
        {}
 };
+MODULE_DEVICE_TABLE(of, dmic_dev_match);
 
 static struct platform_driver dmic_driver = {
        .driver = {