linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH -next] ASoC: intel/boards: add missing MODULE_DEVICE_TABLE
@ 2021-05-12  3:54 Zou Wei
  2021-05-12 13:41 ` Pierre-Louis Bossart
  2021-05-14 15:22 ` Mark Brown
  0 siblings, 2 replies; 5+ messages in thread
From: Zou Wei @ 2021-05-12  3:54 UTC (permalink / raw)
  To: cezary.rojewski, liam.r.girdwood, yang.jie, broonie, perex,
	tiwai, kuninori.morimoto.gx, kai.vehmanen, brent.lu,
	ranjani.sridharan, yong.zhi, dharageswari.r,
	sathyanarayana.nujella, fred.oh, tzungbi
  Cc: alsa-devel, linux-kernel, Zou Wei

This patch adds missing MODULE_DEVICE_TABLE definition which generates
correct modalias for automatic loading of this driver when it is built
as an external module.

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Zou Wei <zou_wei@huawei.com>
---
 sound/soc/intel/boards/sof_da7219_max98373.c | 1 +
 sound/soc/intel/boards/sof_rt5682.c          | 1 +
 2 files changed, 2 insertions(+)

diff --git a/sound/soc/intel/boards/sof_da7219_max98373.c b/sound/soc/intel/boards/sof_da7219_max98373.c
index f3cb077..8d1ad89 100644
--- a/sound/soc/intel/boards/sof_da7219_max98373.c
+++ b/sound/soc/intel/boards/sof_da7219_max98373.c
@@ -440,6 +440,7 @@ static const struct platform_device_id board_ids[] = {
 	},
 	{ }
 };
+MODULE_DEVICE_TABLE(platform, board_ids);
 
 static struct platform_driver audio = {
 	.probe = audio_probe,
diff --git a/sound/soc/intel/boards/sof_rt5682.c b/sound/soc/intel/boards/sof_rt5682.c
index 58548ea..cf1d053 100644
--- a/sound/soc/intel/boards/sof_rt5682.c
+++ b/sound/soc/intel/boards/sof_rt5682.c
@@ -968,6 +968,7 @@ static const struct platform_device_id board_ids[] = {
 	},
 	{ }
 };
+MODULE_DEVICE_TABLE(platform, board_ids);
 
 static struct platform_driver sof_audio = {
 	.probe = sof_audio_probe,
-- 
2.6.2


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-05-14 15:23 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-12  3:54 [PATCH -next] ASoC: intel/boards: add missing MODULE_DEVICE_TABLE Zou Wei
2021-05-12 13:41 ` Pierre-Louis Bossart
2021-05-12 15:53   ` Mark Brown
2021-05-12 16:25     ` Pierre-Louis Bossart
2021-05-14 15:22 ` Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).