浏览代码

ASoC: mop500: Fix module autoload for OF platform driver

This platform driver has a OF device ID table but the OF module
alias information is not created so module autoloading won't work.

Signed-off-by: Luis de Bethencourt <luis@debethencourt.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Luis de Bethencourt 10 年之前
父节点
当前提交
cfa7a38c75
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      sound/soc/ux500/mop500.c

+ 1 - 0
sound/soc/ux500/mop500.c

@@ -152,6 +152,7 @@ static const struct of_device_id snd_soc_mop500_match[] = {
 	{ .compatible = "stericsson,snd-soc-mop500", },
 	{},
 };
+MODULE_DEVICE_TABLE(of, snd_soc_mop500_match);
 
 static struct platform_driver snd_soc_mop500_driver = {
 	.driver = {