public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ALSA: hda: cs35l41: fix module autoloading
@ 2024-08-15  9:13 Yuntao Liu
  2024-08-18  7:48 ` Takashi Iwai
  0 siblings, 1 reply; 2+ messages in thread
From: Yuntao Liu @ 2024-08-15  9:13 UTC (permalink / raw)
  To: patches, linux-kernel, linux-sound
  Cc: tanureal, tiwai, perex, rf, david.rhodes, liuyuntao12

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@huawei.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


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] ALSA: hda: cs35l41: fix module autoloading
  2024-08-15  9:13 [PATCH] ALSA: hda: cs35l41: fix module autoloading Yuntao Liu
@ 2024-08-18  7:48 ` Takashi Iwai
  0 siblings, 0 replies; 2+ messages in thread
From: Takashi Iwai @ 2024-08-18  7:48 UTC (permalink / raw)
  To: Yuntao Liu
  Cc: patches, linux-kernel, linux-sound, tanureal, tiwai, perex, rf,
	david.rhodes

On Thu, 15 Aug 2024 11:13:12 +0200,
Yuntao Liu wrote:
> 
> 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@huawei.com>

Thanks, applied with a correction Fixes tag (that had 13 bytes SHA
ID).


Takashi

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-08-18  7:48 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-15  9:13 [PATCH] ALSA: hda: cs35l41: fix module autoloading Yuntao Liu
2024-08-18  7:48 ` Takashi Iwai

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox