Commit cb06a037 authored by Jerome Brunet's avatar Jerome Brunet Committed by Mark Brown

ASoC: dmic: add DT module alias

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: default avatarJerome Brunet <jbrunet@baylibre.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 26bcf1c3
...@@ -148,6 +148,7 @@ static const struct of_device_id dmic_dev_match[] = { ...@@ -148,6 +148,7 @@ static const struct of_device_id dmic_dev_match[] = {
{.compatible = "dmic-codec"}, {.compatible = "dmic-codec"},
{} {}
}; };
MODULE_DEVICE_TABLE(of, dmic_dev_match);
static struct platform_driver dmic_driver = { static struct platform_driver dmic_driver = {
.driver = { .driver = {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment