[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240815091312.757139-1-liuyuntao12@huawei.com>
Date: Thu, 15 Aug 2024 09:13:12 +0000
From: Yuntao Liu <liuyuntao12@...wei.com>
To: <patches@...nsource.cirrus.com>, <linux-kernel@...r.kernel.org>,
<linux-sound@...r.kernel.org>
CC: <tanureal@...nsource.cirrus.com>, <tiwai@...e.com>, <perex@...ex.cz>,
<rf@...nsource.cirrus.com>, <david.rhodes@...rus.com>,
<liuyuntao12@...wei.com>
Subject: [PATCH] ALSA: hda: cs35l41: fix module autoloading
Add MODULE_DEVICE_TABLE(), so modules could be properly autoloaded
based on the alias from spi_device_id table.
Fixes: 7b2f3eb492dac ("ALSA: hda: cs35l41: Add support for CS35L41 in HDA systems")
Signed-off-by: Yuntao Liu <liuyuntao12@...wei.com>
---
sound/pci/hda/cs35l41_hda_spi.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/sound/pci/hda/cs35l41_hda_spi.c b/sound/pci/hda/cs35l41_hda_spi.c
index b76c0dfd5fef..f8c356ad0d34 100644
--- a/sound/pci/hda/cs35l41_hda_spi.c
+++ b/sound/pci/hda/cs35l41_hda_spi.c
@@ -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 },
--
2.34.1
Powered by blists - more mailing lists