Skip to content

Commit

Permalink
ASoC: fix module autoloading
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
broonie committed Aug 26, 2024
2 parents 2265202 + 6ba2053 commit 1165e70
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions sound/soc/codecs/chv3-codec.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ static const struct of_device_id chv3_codec_of_match[] = {
{ .compatible = "google,chv3-codec", },
{ }
};
MODULE_DEVICE_TABLE(of, chv3_codec_of_match);

static struct platform_driver chv3_codec_platform_driver = {
.driver = {
Expand Down
1 change: 1 addition & 0 deletions sound/soc/codecs/tda7419.c
Original file line number Diff line number Diff line change
Expand Up @@ -623,6 +623,7 @@ static const struct of_device_id tda7419_of_match[] = {
{ .compatible = "st,tda7419" },
{ },
};
MODULE_DEVICE_TABLE(of, tda7419_of_match);

static struct i2c_driver tda7419_driver = {
.driver = {
Expand Down
1 change: 1 addition & 0 deletions sound/soc/google/chv3-i2s.c
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,7 @@ static const struct of_device_id chv3_i2s_of_match[] = {
{ .compatible = "google,chv3-i2s" },
{},
};
MODULE_DEVICE_TABLE(of, chv3_i2s_of_match);

static struct platform_driver chv3_i2s_driver = {
.probe = chv3_i2s_probe,
Expand Down
1 change: 1 addition & 0 deletions sound/soc/intel/keembay/kmb_platform.c
Original file line number Diff line number Diff line change
Expand Up @@ -814,6 +814,7 @@ static const struct of_device_id kmb_plat_of_match[] = {
{ .compatible = "intel,keembay-tdm", .data = &intel_kmb_tdm_dai},
{}
};
MODULE_DEVICE_TABLE(of, kmb_plat_of_match);

static int kmb_plat_dai_probe(struct platform_device *pdev)
{
Expand Down

0 comments on commit 1165e70

Please sign in to comment.