All of lore.kernel.org
 help / color / mirror / Atom feed
From: Zou Wei <zou_wei@huawei.com>
To: <cezary.rojewski@intel.com>, <liam.r.girdwood@linux.intel.com>,
	<yang.jie@linux.intel.com>, <broonie@kernel.org>,
	<perex@perex.cz>, <tiwai@suse.com>,
	<kuninori.morimoto.gx@renesas.com>,
	<kai.vehmanen@linux.intel.com>, <brent.lu@intel.com>,
	<ranjani.sridharan@linux.intel.com>, <yong.zhi@intel.com>,
	<dharageswari.r@intel.com>, <sathyanarayana.nujella@intel.com>,
	<fred.oh@linux.intel.com>, <tzungbi@google.com>
Cc: <alsa-devel@alsa-project.org>, <linux-kernel@vger.kernel.org>,
	Zou Wei <zou_wei@huawei.com>
Subject: [PATCH -next] ASoC: intel/boards: add missing MODULE_DEVICE_TABLE
Date: Wed, 12 May 2021 11:54:07 +0800	[thread overview]
Message-ID: <1620791647-16024-1-git-send-email-zou_wei@huawei.com> (raw)

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


WARNING: multiple messages have this Message-ID (diff)
From: Zou Wei <zou_wei@huawei.com>
To: <cezary.rojewski@intel.com>, <liam.r.girdwood@linux.intel.com>,
	<yang.jie@linux.intel.com>, <broonie@kernel.org>,
	<perex@perex.cz>, <tiwai@suse.com>,
	<kuninori.morimoto.gx@renesas.com>,
	<kai.vehmanen@linux.intel.com>, <brent.lu@intel.com>,
	<ranjani.sridharan@linux.intel.com>, <yong.zhi@intel.com>,
	<dharageswari.r@intel.com>, <sathyanarayana.nujella@intel.com>,
	<fred.oh@linux.intel.com>, <tzungbi@google.com>
Cc: alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org,
	Zou Wei <zou_wei@huawei.com>
Subject: [PATCH -next] ASoC: intel/boards: add missing MODULE_DEVICE_TABLE
Date: Wed, 12 May 2021 11:54:07 +0800	[thread overview]
Message-ID: <1620791647-16024-1-git-send-email-zou_wei@huawei.com> (raw)

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


             reply	other threads:[~2021-05-12  3:37 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-12  3:54 Zou Wei [this message]
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 15:53     ` Mark Brown
2021-05-12 16:25     ` Pierre-Louis Bossart
2021-05-12 16:25       ` Pierre-Louis Bossart
2021-05-14 15:22 ` Mark Brown
2021-05-14 15:22   ` Mark Brown

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1620791647-16024-1-git-send-email-zou_wei@huawei.com \
    --to=zou_wei@huawei.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=brent.lu@intel.com \
    --cc=broonie@kernel.org \
    --cc=cezary.rojewski@intel.com \
    --cc=dharageswari.r@intel.com \
    --cc=fred.oh@linux.intel.com \
    --cc=kai.vehmanen@linux.intel.com \
    --cc=kuninori.morimoto.gx@renesas.com \
    --cc=liam.r.girdwood@linux.intel.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=perex@perex.cz \
    --cc=ranjani.sridharan@linux.intel.com \
    --cc=sathyanarayana.nujella@intel.com \
    --cc=tiwai@suse.com \
    --cc=tzungbi@google.com \
    --cc=yang.jie@linux.intel.com \
    --cc=yong.zhi@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.