Skip to content

Commit a75e5cd

Browse files
SamuelZOUbroonie
authored andcommitted
ASoC: intel/boards: add missing MODULE_DEVICE_TABLE
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 <[email protected]> Signed-off-by: Zou Wei <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent 98c69fc commit a75e5cd

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

sound/soc/intel/boards/sof_da7219_max98373.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -440,6 +440,7 @@ static const struct platform_device_id board_ids[] = {
440440
},
441441
{ }
442442
};
443+
MODULE_DEVICE_TABLE(platform, board_ids);
443444

444445
static struct platform_driver audio = {
445446
.probe = audio_probe,

sound/soc/intel/boards/sof_rt5682.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1045,6 +1045,7 @@ static const struct platform_device_id board_ids[] = {
10451045
},
10461046
{ }
10471047
};
1048+
MODULE_DEVICE_TABLE(platform, board_ids);
10481049

10491050
static struct platform_driver sof_audio = {
10501051
.probe = sof_audio_probe,

0 commit comments

Comments
 (0)