Skip to content

Commit 1165e70

Browse files
committed
ASoC: fix module autoloading
Merge series from Liao Chen <[email protected]>: This patchset aims to enable autoloading of some use modules. By registering MDT, the kernel is allowed to automatically bind modules to devices that match the specified compatible strings.
2 parents 2265202 + 6ba2053 commit 1165e70

File tree

4 files changed

+4
-0
lines changed

4 files changed

+4
-0
lines changed

sound/soc/codecs/chv3-codec.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ static const struct of_device_id chv3_codec_of_match[] = {
2626
{ .compatible = "google,chv3-codec", },
2727
{ }
2828
};
29+
MODULE_DEVICE_TABLE(of, chv3_codec_of_match);
2930

3031
static struct platform_driver chv3_codec_platform_driver = {
3132
.driver = {

sound/soc/codecs/tda7419.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -623,6 +623,7 @@ static const struct of_device_id tda7419_of_match[] = {
623623
{ .compatible = "st,tda7419" },
624624
{ },
625625
};
626+
MODULE_DEVICE_TABLE(of, tda7419_of_match);
626627

627628
static struct i2c_driver tda7419_driver = {
628629
.driver = {

sound/soc/google/chv3-i2s.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -322,6 +322,7 @@ static const struct of_device_id chv3_i2s_of_match[] = {
322322
{ .compatible = "google,chv3-i2s" },
323323
{},
324324
};
325+
MODULE_DEVICE_TABLE(of, chv3_i2s_of_match);
325326

326327
static struct platform_driver chv3_i2s_driver = {
327328
.probe = chv3_i2s_probe,

sound/soc/intel/keembay/kmb_platform.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -814,6 +814,7 @@ static const struct of_device_id kmb_plat_of_match[] = {
814814
{ .compatible = "intel,keembay-tdm", .data = &intel_kmb_tdm_dai},
815815
{}
816816
};
817+
MODULE_DEVICE_TABLE(of, kmb_plat_of_match);
817818

818819
static int kmb_plat_dai_probe(struct platform_device *pdev)
819820
{

0 commit comments

Comments
 (0)