ALSA: hda: cs35l41: fix module autoloading
authorYuntao Liu <liuyuntao12@huawei.com>
Thu, 15 Aug 2024 09:13:12 +0000 (09:13 +0000)
committerTakashi Iwai <tiwai@suse.de>
Sun, 18 Aug 2024 07:47:30 +0000 (09:47 +0200)
Add MODULE_DEVICE_TABLE(), so modules could be properly autoloaded
based on the alias from spi_device_id table.

Fixes: 7b2f3eb492da ("ALSA: hda: cs35l41: Add support for CS35L41 in HDA systems")
Signed-off-by: Yuntao Liu <liuyuntao12@huawei.com>
Link: https://patch.msgid.link/20240815091312.757139-1-liuyuntao12@huawei.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/cs35l41_hda_spi.c

index b76c0dfd5fefc4e0bf115e5443c45ccf9669c433..f8c356ad0d340f1a64ab46b30c1f943788025d7e 100644 (file)
@@ -38,6 +38,7 @@ static const struct spi_device_id cs35l41_hda_spi_id[] = {
        { "cs35l41-hda", 0 },
        {}
 };
+MODULE_DEVICE_TABLE(spi, cs35l41_hda_spi_id);
 
 static const struct acpi_device_id cs35l41_acpi_hda_match[] = {
        { "CSC3551", 0 },