]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
ASoC: tda7419: fix module autoloading
authorLiao Chen <liaochen4@huawei.com>
Mon, 26 Aug 2024 08:49:23 +0000 (08:49 +0000)
committerMark Brown <broonie@kernel.org>
Mon, 26 Aug 2024 14:52:08 +0000 (15:52 +0100)
Add MODULE_DEVICE_TABLE(), so modules could be properly autoloaded
based on the alias from of_device_id table.

Signed-off-by: Liao Chen <liaochen4@huawei.com>
Link: https://patch.msgid.link/20240826084924.368387-4-liaochen4@huawei.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/tda7419.c

index 386b99c8023bdc53790110ac5536b2d4e8dc3593..7d6fcba9986ea4e1e6ad676431ca3a28638e9388 100644 (file)
@@ -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 = {