Commit 43b429f0 authored by Mark Brown's avatar Mark Brown

ASoC: mediatek: Register machine drivers to module device table

Merge series from Nícolas F. R. A. Prado <nfraprado@collabora.com>:

Some ASoC machine drivers for MediaTek platforms were not being
registered to the module device table, preventing them to be
automatically loaded when built as modules. This series adds the missing
registration to the drivers.
parents 36c6cdc0 6bd8ddf0
...@@ -418,6 +418,7 @@ static const struct of_device_id mt2701_cs42448_machine_dt_match[] = { ...@@ -418,6 +418,7 @@ static const struct of_device_id mt2701_cs42448_machine_dt_match[] = {
{.compatible = "mediatek,mt2701-cs42448-machine",}, {.compatible = "mediatek,mt2701-cs42448-machine",},
{} {}
}; };
MODULE_DEVICE_TABLE(of, mt2701_cs42448_machine_dt_match);
#endif #endif
static struct platform_driver mt2701_cs42448_machine = { static struct platform_driver mt2701_cs42448_machine = {
......
...@@ -161,6 +161,7 @@ static const struct of_device_id mt2701_wm8960_machine_dt_match[] = { ...@@ -161,6 +161,7 @@ static const struct of_device_id mt2701_wm8960_machine_dt_match[] = {
{.compatible = "mediatek,mt2701-wm8960-machine",}, {.compatible = "mediatek,mt2701-wm8960-machine",},
{} {}
}; };
MODULE_DEVICE_TABLE(of, mt2701_wm8960_machine_dt_match);
#endif #endif
static struct platform_driver mt2701_wm8960_machine = { static struct platform_driver mt2701_wm8960_machine = {
......
...@@ -242,6 +242,7 @@ static const struct of_device_id mt6797_mt6351_dt_match[] = { ...@@ -242,6 +242,7 @@ static const struct of_device_id mt6797_mt6351_dt_match[] = {
{.compatible = "mediatek,mt6797-mt6351-sound",}, {.compatible = "mediatek,mt6797-mt6351-sound",},
{} {}
}; };
MODULE_DEVICE_TABLE(of, mt6797_mt6351_dt_match);
#endif #endif
static struct platform_driver mt6797_mt6351_driver = { static struct platform_driver mt6797_mt6351_driver = {
......
...@@ -1161,6 +1161,7 @@ static const struct of_device_id mt8186_mt6366_da7219_max98357_dt_match[] = { ...@@ -1161,6 +1161,7 @@ static const struct of_device_id mt8186_mt6366_da7219_max98357_dt_match[] = {
}, },
{} {}
}; };
MODULE_DEVICE_TABLE(of, mt8186_mt6366_da7219_max98357_dt_match);
#endif #endif
static struct platform_driver mt8186_mt6366_da7219_max98357_driver = { static struct platform_driver mt8186_mt6366_da7219_max98357_driver = {
......
...@@ -1237,6 +1237,7 @@ static const struct of_device_id mt8186_mt6366_rt1019_rt5682s_dt_match[] = { ...@@ -1237,6 +1237,7 @@ static const struct of_device_id mt8186_mt6366_rt1019_rt5682s_dt_match[] = {
}, },
{} {}
}; };
MODULE_DEVICE_TABLE(of, mt8186_mt6366_rt1019_rt5682s_dt_match);
#endif #endif
static struct platform_driver mt8186_mt6366_rt1019_rt5682s_driver = { static struct platform_driver mt8186_mt6366_rt1019_rt5682s_driver = {
......
...@@ -1261,6 +1261,7 @@ static const struct of_device_id mt8192_mt6359_dt_match[] = { ...@@ -1261,6 +1261,7 @@ static const struct of_device_id mt8192_mt6359_dt_match[] = {
}, },
{} {}
}; };
MODULE_DEVICE_TABLE(of, mt8192_mt6359_dt_match);
#endif #endif
static const struct dev_pm_ops mt8192_mt6359_pm_ops = { static const struct dev_pm_ops mt8192_mt6359_pm_ops = {
......
...@@ -1544,6 +1544,7 @@ static const struct of_device_id mt8195_mt6359_dt_match[] = { ...@@ -1544,6 +1544,7 @@ static const struct of_device_id mt8195_mt6359_dt_match[] = {
}, },
{}, {},
}; };
MODULE_DEVICE_TABLE(of, mt8195_mt6359_dt_match);
static struct platform_driver mt8195_mt6359_driver = { static struct platform_driver mt8195_mt6359_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