ASoC: Intel: use MODULE_DEVICE_TABLE with platform_device_id tables
When we have a platform_device_id table, we can use MODULE_DEVICE_TABLE to automatically generate the modalias. As a result we can remove the manual insertion of MODULE_ALIAS. Reported-by: Hulk Robot <hulkci@huawei.com> Suggested-by: Zou Wei <zou_wei@huawei.com> Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Reviewed-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com> Link: https://lore.kernel.org/r/20210621194057.21711-10-pierre-louis.bossart@linux.intel.com Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
0c52d3e222
commit
53b98536fb
|
@ -845,6 +845,7 @@ static const struct platform_device_id bxt_board_ids[] = {
|
|||
{ .name = "cml_da7219_mx98357a" },
|
||||
{ }
|
||||
};
|
||||
MODULE_DEVICE_TABLE(platform, bxt_board_ids);
|
||||
|
||||
static struct platform_driver broxton_audio = {
|
||||
.probe = broxton_audio_probe,
|
||||
|
@ -866,7 +867,4 @@ MODULE_AUTHOR("Naveen Manohar <naveen.m@intel.com>");
|
|||
MODULE_AUTHOR("Mac Chiang <mac.chiang@intel.com>");
|
||||
MODULE_AUTHOR("Brent Lu <brent.lu@intel.com>");
|
||||
MODULE_LICENSE("GPL v2");
|
||||
MODULE_ALIAS("platform:bxt_da7219_mx98357a");
|
||||
MODULE_ALIAS("platform:glk_da7219_mx98357a");
|
||||
MODULE_ALIAS("platform:cml_da7219_mx98357a");
|
||||
MODULE_IMPORT_NS(SND_SOC_INTEL_HDA_DSP_COMMON);
|
||||
|
|
|
@ -649,6 +649,7 @@ static const struct platform_device_id bxt_board_ids[] = {
|
|||
(unsigned long)&geminilake_rt298 },
|
||||
{}
|
||||
};
|
||||
MODULE_DEVICE_TABLE(platform, bxt_board_ids);
|
||||
|
||||
static struct platform_driver broxton_audio = {
|
||||
.probe = broxton_audio_probe,
|
||||
|
@ -665,6 +666,4 @@ MODULE_AUTHOR("Ramesh Babu <Ramesh.Babu@intel.com>");
|
|||
MODULE_AUTHOR("Senthilnathan Veppur <senthilnathanx.veppur@intel.com>");
|
||||
MODULE_DESCRIPTION("Intel SST Audio for Broxton");
|
||||
MODULE_LICENSE("GPL v2");
|
||||
MODULE_ALIAS("platform:bxt_alc298s_i2s");
|
||||
MODULE_ALIAS("platform:glk_alc298s_i2s");
|
||||
MODULE_IMPORT_NS(SND_SOC_INTEL_HDA_DSP_COMMON);
|
||||
|
|
|
@ -304,6 +304,7 @@ static const struct platform_device_id ehl_board_ids[] = {
|
|||
{ .name = "ehl_rt5660" },
|
||||
{ }
|
||||
};
|
||||
MODULE_DEVICE_TABLE(platform, ehl_board_ids);
|
||||
|
||||
static struct platform_driver snd_ehl_rt5660_driver = {
|
||||
.driver = {
|
||||
|
@ -319,5 +320,4 @@ module_platform_driver(snd_ehl_rt5660_driver);
|
|||
MODULE_DESCRIPTION("ASoC Intel(R) Elkhartlake + rt5660 Machine driver");
|
||||
MODULE_AUTHOR("libin.yang@intel.com");
|
||||
MODULE_LICENSE("GPL v2");
|
||||
MODULE_ALIAS("platform:ehl_rt5660");
|
||||
MODULE_IMPORT_NS(SND_SOC_INTEL_HDA_DSP_COMMON);
|
||||
|
|
|
@ -625,6 +625,7 @@ static const struct platform_device_id glk_board_ids[] = {
|
|||
},
|
||||
{ }
|
||||
};
|
||||
MODULE_DEVICE_TABLE(platform, glk_board_ids);
|
||||
|
||||
static struct platform_driver geminilake_audio = {
|
||||
.probe = geminilake_audio_probe,
|
||||
|
@ -641,5 +642,4 @@ MODULE_DESCRIPTION("Geminilake Audio Machine driver-RT5682 & MAX98357A in I2S mo
|
|||
MODULE_AUTHOR("Naveen Manohar <naveen.m@intel.com>");
|
||||
MODULE_AUTHOR("Harsha Priya <harshapriya.n@intel.com>");
|
||||
MODULE_LICENSE("GPL v2");
|
||||
MODULE_ALIAS("platform:glk_rt5682_mx98357a");
|
||||
MODULE_IMPORT_NS(SND_SOC_INTEL_HDA_DSP_COMMON);
|
||||
|
|
|
@ -650,6 +650,7 @@ static const struct platform_device_id kbl_board_ids[] = {
|
|||
},
|
||||
{ }
|
||||
};
|
||||
MODULE_DEVICE_TABLE(platform, kbl_board_ids);
|
||||
|
||||
static struct platform_driver kabylake_audio = {
|
||||
.probe = kabylake_audio_probe,
|
||||
|
@ -666,4 +667,3 @@ module_platform_driver(kabylake_audio)
|
|||
MODULE_DESCRIPTION("Audio Machine driver-DA7219 & MAX98357A in I2S mode");
|
||||
MODULE_AUTHOR("Naveen Manohar <naveen.m@intel.com>");
|
||||
MODULE_LICENSE("GPL v2");
|
||||
MODULE_ALIAS("platform:kbl_da7219_mx98357a");
|
||||
|
|
|
@ -1175,6 +1175,7 @@ static const struct platform_device_id kbl_board_ids[] = {
|
|||
},
|
||||
{ }
|
||||
};
|
||||
MODULE_DEVICE_TABLE(platform, kbl_board_ids);
|
||||
|
||||
static struct platform_driver kabylake_audio = {
|
||||
.probe = kabylake_audio_probe,
|
||||
|
@ -1191,7 +1192,3 @@ module_platform_driver(kabylake_audio)
|
|||
MODULE_DESCRIPTION("Audio KabyLake Machine driver for MAX98927/MAX98373 & DA7219");
|
||||
MODULE_AUTHOR("Mac Chiang <mac.chiang@intel.com>");
|
||||
MODULE_LICENSE("GPL v2");
|
||||
MODULE_ALIAS("platform:kbl_da7219_max98927");
|
||||
MODULE_ALIAS("platform:kbl_max98927");
|
||||
MODULE_ALIAS("platform:kbl_da7219_max98373");
|
||||
MODULE_ALIAS("platform:kbl_max98373");
|
||||
|
|
|
@ -548,6 +548,7 @@ static const struct platform_device_id kbl_board_ids[] = {
|
|||
},
|
||||
{ }
|
||||
};
|
||||
MODULE_DEVICE_TABLE(platform, kbl_board_ids);
|
||||
|
||||
static struct platform_driver kabylake_audio = {
|
||||
.probe = kabylake_audio_probe,
|
||||
|
@ -564,4 +565,3 @@ module_platform_driver(kabylake_audio)
|
|||
MODULE_DESCRIPTION("Audio Machine driver-RT5660 in I2S mode");
|
||||
MODULE_AUTHOR("Hui Wang <hui.wang@canonical.com>");
|
||||
MODULE_LICENSE("GPL v2");
|
||||
MODULE_ALIAS("platform:kbl_rt5660");
|
||||
|
|
|
@ -1039,6 +1039,7 @@ static const struct platform_device_id kbl_board_ids[] = {
|
|||
},
|
||||
{ }
|
||||
};
|
||||
MODULE_DEVICE_TABLE(platform, kbl_board_ids);
|
||||
|
||||
static struct platform_driver kabylake_audio = {
|
||||
.probe = kabylake_audio_probe,
|
||||
|
@ -1056,5 +1057,3 @@ MODULE_DESCRIPTION("Audio Machine driver-RT5663 & MAX98927 in I2S mode");
|
|||
MODULE_AUTHOR("Naveen M <naveen.m@intel.com>");
|
||||
MODULE_AUTHOR("Harsha Priya <harshapriya.n@intel.com>");
|
||||
MODULE_LICENSE("GPL v2");
|
||||
MODULE_ALIAS("platform:kbl_rt5663");
|
||||
MODULE_ALIAS("platform:kbl_rt5663_m98927");
|
||||
|
|
|
@ -837,6 +837,7 @@ static const struct platform_device_id kbl_board_ids[] = {
|
|||
{ .name = "kbl_r5514_5663_max" },
|
||||
{ }
|
||||
};
|
||||
MODULE_DEVICE_TABLE(platform, kbl_board_ids);
|
||||
|
||||
static struct platform_driver kabylake_audio = {
|
||||
.probe = kabylake_audio_probe,
|
||||
|
@ -853,4 +854,3 @@ module_platform_driver(kabylake_audio)
|
|||
MODULE_DESCRIPTION("Audio Machine driver-RT5663 RT5514 & MAX98927");
|
||||
MODULE_AUTHOR("Harsha Priya <harshapriya.n@intel.com>");
|
||||
MODULE_LICENSE("GPL v2");
|
||||
MODULE_ALIAS("platform:kbl_r5514_5663_max");
|
||||
|
|
|
@ -673,6 +673,7 @@ static const struct platform_device_id skl_board_ids[] = {
|
|||
{ .name = "kbl_n88l25_m98357a" },
|
||||
{ }
|
||||
};
|
||||
MODULE_DEVICE_TABLE(platform, skl_board_ids);
|
||||
|
||||
static struct platform_driver skylake_audio = {
|
||||
.probe = skylake_audio_probe,
|
||||
|
@ -689,5 +690,3 @@ module_platform_driver(skylake_audio)
|
|||
MODULE_DESCRIPTION("Audio Machine driver-NAU88L25 & MAX98357A in I2S mode");
|
||||
MODULE_AUTHOR("Rohit Ainapure <rohit.m.ainapure@intel.com");
|
||||
MODULE_LICENSE("GPL v2");
|
||||
MODULE_ALIAS("platform:skl_n88l25_m98357a");
|
||||
MODULE_ALIAS("platform:kbl_n88l25_m98357a");
|
||||
|
|
|
@ -717,6 +717,7 @@ static const struct platform_device_id skl_board_ids[] = {
|
|||
{ .name = "kbl_n88l25_s4567" },
|
||||
{ }
|
||||
};
|
||||
MODULE_DEVICE_TABLE(platform, skl_board_ids);
|
||||
|
||||
static struct platform_driver skylake_audio = {
|
||||
.probe = skylake_audio_probe,
|
||||
|
@ -737,5 +738,3 @@ MODULE_AUTHOR("Sathya Prakash M R <sathya.prakash.m.r@intel.com>");
|
|||
MODULE_AUTHOR("Yong Zhi <yong.zhi@intel.com>");
|
||||
MODULE_DESCRIPTION("Intel Audio Machine driver for SKL with NAU88L25 and SSM4567 in I2S Mode");
|
||||
MODULE_LICENSE("GPL v2");
|
||||
MODULE_ALIAS("platform:skl_n88l25_s4567");
|
||||
MODULE_ALIAS("platform:kbl_n88l25_s4567");
|
||||
|
|
|
@ -548,6 +548,7 @@ static const struct platform_device_id skl_board_ids[] = {
|
|||
{ .name = "kbl_alc286s_i2s" },
|
||||
{ }
|
||||
};
|
||||
MODULE_DEVICE_TABLE(platform, skl_board_ids);
|
||||
|
||||
static struct platform_driver skylake_audio = {
|
||||
.probe = skylake_audio_probe,
|
||||
|
@ -565,5 +566,3 @@ module_platform_driver(skylake_audio)
|
|||
MODULE_AUTHOR("Omair Mohammed Abdullah <omair.m.abdullah@intel.com>");
|
||||
MODULE_DESCRIPTION("Intel SST Audio for Skylake");
|
||||
MODULE_LICENSE("GPL v2");
|
||||
MODULE_ALIAS("platform:skl_alc286s_i2s");
|
||||
MODULE_ALIAS("platform:kbl_alc286s_i2s");
|
||||
|
|
|
@ -488,6 +488,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,
|
||||
|
@ -503,7 +504,5 @@ module_platform_driver(sof_audio)
|
|||
MODULE_DESCRIPTION("SOF Audio Machine driver for CS42L42");
|
||||
MODULE_AUTHOR("Brent Lu <brent.lu@intel.com>");
|
||||
MODULE_LICENSE("GPL");
|
||||
MODULE_ALIAS("platform:sof_cs42l42");
|
||||
MODULE_ALIAS("platform:glk_cs4242_max98357a");
|
||||
MODULE_IMPORT_NS(SND_SOC_INTEL_HDA_DSP_COMMON);
|
||||
MODULE_IMPORT_NS(SND_SOC_INTEL_SOF_MAXIM_COMMON);
|
||||
|
|
|
@ -456,6 +456,4 @@ module_platform_driver(audio)
|
|||
MODULE_DESCRIPTION("ASoC Intel(R) SOF Machine driver");
|
||||
MODULE_AUTHOR("Yong Zhi <yong.zhi@intel.com>");
|
||||
MODULE_LICENSE("GPL v2");
|
||||
MODULE_ALIAS("platform:sof_da7219_mx98360a");
|
||||
MODULE_ALIAS("platform:sof_da7219_mx98373");
|
||||
MODULE_IMPORT_NS(SND_SOC_INTEL_HDA_DSP_COMMON);
|
||||
|
|
|
@ -1063,15 +1063,5 @@ MODULE_AUTHOR("Bard Liao <bard.liao@intel.com>");
|
|||
MODULE_AUTHOR("Sathya Prakash M R <sathya.prakash.m.r@intel.com>");
|
||||
MODULE_AUTHOR("Brent Lu <brent.lu@intel.com>");
|
||||
MODULE_LICENSE("GPL v2");
|
||||
MODULE_ALIAS("platform:sof_rt5682");
|
||||
MODULE_ALIAS("platform:tgl_mx98357a_rt5682");
|
||||
MODULE_ALIAS("platform:jsl_rt5682_rt1015");
|
||||
MODULE_ALIAS("platform:tgl_mx98373_rt5682");
|
||||
MODULE_ALIAS("platform:jsl_rt5682_mx98360a");
|
||||
MODULE_ALIAS("platform:cml_rt1015_rt5682");
|
||||
MODULE_ALIAS("platform:tgl_rt1011_rt5682");
|
||||
MODULE_ALIAS("platform:jsl_rt5682_rt1015p");
|
||||
MODULE_ALIAS("platform:adl_mx98373_rt5682");
|
||||
MODULE_ALIAS("platform:adl_mx98357a_rt5682");
|
||||
MODULE_IMPORT_NS(SND_SOC_INTEL_HDA_DSP_COMMON);
|
||||
MODULE_IMPORT_NS(SND_SOC_INTEL_SOF_MAXIM_COMMON);
|
||||
|
|
Loading…
Reference in New Issue