Skip to content

Commit

Permalink
ASoC: intel/boards: add missing MODULE_DEVICE_TABLE
Browse files Browse the repository at this point in the history
[ Upstream commit a75e5cd ]

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>
Link: https://lore.kernel.org/r/1620791647-16024-1-git-send-email-zou_wei@huawei.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
  • Loading branch information
SamuelZOU authored and gregkh committed Jul 20, 2021
1 parent 09d1549 commit 9c029e5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions sound/soc/intel/boards/sof_da7219_max98373.c
Expand Up @@ -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,
Expand Down
1 change: 1 addition & 0 deletions sound/soc/intel/boards/sof_rt5682.c
Expand Up @@ -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,
Expand Down

0 comments on commit 9c029e5

Please sign in to comment.