Skip to contentSkip to conversation

add a symlink to module in /sys/pci/drivers/*

PATCH In review Laurent Riffard 3 participants 3 messages Sep 9, 2005 – Sep 12, 2005

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 add a symlink to module in /sys/pci/drivers/*

Following a thread on LKML
(http://marc.theaimsgroup.com/?l=linux-kernel&m=112569665717371),
here is a patch which adds a symlink to the kernel module in the /sys/pci/drivers/* directories for all the drivers located in linux/sound/pci/.

--

sound/pci/als4000.c +1 -0
Index: linux-2.6-stable/sound/pci/als4000.c
===================================================================
@@ -769,6 +769,7 @@
 }
 
 static struct pci_driver driver = {
+	.owner = THIS_MODULE,
 	.name = "ALS4000",
 	.id_table = snd_als4000_ids,
 	.probe = snd_card_als4000_probe,
sound/pci/atiixp.c +1 -0
Index: linux-2.6-stable/sound/pci/atiixp.c
===================================================================
@@ -1635,6 +1635,7 @@
 }
 
 static struct pci_driver driver = {
+	.owner = THIS_MODULE,
 	.name = "ATI IXP AC97 controller",
 	.id_table = snd_atiixp_ids,
 	.probe = snd_atiixp_probe,
sound/pci/atiixp_modem.c +1 -0
Index: linux-2.6-stable/sound/pci/atiixp_modem.c
===================================================================
@@ -1317,6 +1317,7 @@
 }
 
 static struct pci_driver driver = {
+	.owner = THIS_MODULE,
 	.name = "ATI IXP MC97 controller",
 	.id_table = snd_atiixp_ids,
 	.probe = snd_atiixp_probe,
sound/pci/azt3328.c +1 -0
Index: linux-2.6-stable/sound/pci/azt3328.c
===================================================================
@@ -1510,6 +1510,7 @@
 }
 
 static struct pci_driver driver = {
+	.owner = THIS_MODULE,
 	.name = "AZF3328",
 	.id_table = snd_azf3328_ids,
 	.probe = snd_azf3328_probe,
sound/pci/bt87x.c +1 -0
Index: linux-2.6-stable/sound/pci/bt87x.c
===================================================================
@@ -910,6 +910,7 @@
 };
 
 static struct pci_driver driver = {
+	.owner = THIS_MODULE,
 	.name = "Bt87x",
 	.id_table = snd_bt87x_ids,
 	.probe = snd_bt87x_probe,
sound/pci/cmipci.c +1 -0
Index: linux-2.6-stable/sound/pci/cmipci.c
===================================================================
@@ -3062,6 +3062,7 @@
 
 
 static struct pci_driver driver = {
+	.owner = THIS_MODULE,
 	.name = "C-Media PCI",
 	.id_table = snd_cmipci_ids,
 	.probe = snd_cmipci_probe,
sound/pci/cs4281.c +1 -0
Index: linux-2.6-stable/sound/pci/cs4281.c
===================================================================
@@ -2118,6 +2118,7 @@
 #endif /* CONFIG_PM */
 
 static struct pci_driver driver = {
+	.owner = THIS_MODULE,
 	.name = "CS4281",
 	.id_table = snd_cs4281_ids,
 	.probe = snd_cs4281_probe,
sound/pci/es1938.c +1 -0
Index: linux-2.6-stable/sound/pci/es1938.c
===================================================================
@@ -1752,6 +1752,7 @@
 }
 
 static struct pci_driver driver = {
+	.owner = THIS_MODULE,
 	.name = "ESS ES1938 (Solo-1)",
 	.id_table = snd_es1938_ids,
 	.probe = snd_es1938_probe,
sound/pci/es1968.c +1 -0
Index: linux-2.6-stable/sound/pci/es1968.c
===================================================================
@@ -2781,6 +2781,7 @@
 }
 
 static struct pci_driver driver = {
+	.owner = THIS_MODULE,
 	.name = "ES1968 (ESS Maestro)",
 	.id_table = snd_es1968_ids,
 	.probe = snd_es1968_probe,
sound/pci/fm801.c +1 -0
Index: linux-2.6-stable/sound/pci/fm801.c
===================================================================
@@ -1461,6 +1461,7 @@
 }
 
 static struct pci_driver driver = {
+	.owner = THIS_MODULE,
 	.name = "FM801",
 	.id_table = snd_fm801_ids,
 	.probe = snd_card_fm801_probe,
sound/pci/intel8x0.c +1 -0
Index: linux-2.6-stable/sound/pci/intel8x0.c
===================================================================
@@ -2862,6 +2862,7 @@
 }
 
 static struct pci_driver driver = {
+	.owner = THIS_MODULE,
 	.name = "Intel ICH",
 	.id_table = snd_intel8x0_ids,
 	.probe = snd_intel8x0_probe,
sound/pci/intel8x0m.c +1 -0
Index: linux-2.6-stable/sound/pci/intel8x0m.c
===================================================================
@@ -1370,6 +1370,7 @@
 }
 
 static struct pci_driver driver = {
+	.owner = THIS_MODULE,
 	.name = "Intel ICH Modem",
 	.id_table = snd_intel8x0m_ids,
 	.probe = snd_intel8x0m_probe,
sound/pci/maestro3.c +1 -0
Index: linux-2.6-stable/sound/pci/maestro3.c
===================================================================
@@ -2889,6 +2889,7 @@
 }
 
 static struct pci_driver driver = {
+	.owner = THIS_MODULE,
 	.name = "Maestro3",
 	.id_table = snd_m3_ids,
 	.probe = snd_m3_probe,
sound/pci/rme32.c +1 -0
Index: linux-2.6-stable/sound/pci/rme32.c
===================================================================
@@ -2023,6 +2023,7 @@
 }
 
 static struct pci_driver driver = {
+	.owner =	THIS_MODULE,
 	.name =		"RME Digi32",
 	.id_table =	snd_rme32_ids,
 	.probe =	snd_rme32_probe,
sound/pci/rme96.c +1 -0
Index: linux-2.6-stable/sound/pci/rme96.c
===================================================================
@@ -2429,6 +2429,7 @@
 }
 
 static struct pci_driver driver = {
+	.owner = THIS_MODULE,
 	.name = "RME Digi96",
 	.id_table = snd_rme96_ids,
 	.probe = snd_rme96_probe,
sound/pci/sonicvibes.c +1 -0
Index: linux-2.6-stable/sound/pci/sonicvibes.c
===================================================================
@@ -1514,6 +1514,7 @@
 }
 
 static struct pci_driver driver = {
+	.owner = THIS_MODULE,
 	.name = "S3 SonicVibes",
 	.id_table = snd_sonic_ids,
 	.probe = snd_sonic_probe,
sound/pci/via82xx.c +1 -0
Index: linux-2.6-stable/sound/pci/via82xx.c
===================================================================
@@ -2344,6 +2344,7 @@
 }
 
 static struct pci_driver driver = {
+	.owner = THIS_MODULE,
 	.name = "VIA 82xx Audio",
 	.id_table = snd_via82xx_ids,
 	.probe = snd_via82xx_probe,
sound/pci/via82xx_modem.c +1 -0
Index: linux-2.6-stable/sound/pci/via82xx_modem.c
===================================================================
@@ -1205,6 +1205,7 @@
 }
 
 static struct pci_driver driver = {
+	.owner = THIS_MODULE,
 	.name = "VIA 82xx Modem",
 	.id_table = snd_via82xx_modem_ids,
 	.probe = snd_via82xx_probe,
sound/pci/ali5451/ali5451.c +1 -0
Index: linux-2.6-stable/sound/pci/ali5451/ali5451.c
===================================================================
@@ -2416,6 +2416,7 @@
 }
 
 static struct pci_driver driver = {
+	.owner = THIS_MODULE,
 	.name = "ALI 5451",
 	.id_table = snd_ali_ids,
 	.probe = snd_ali_probe,
sound/pci/au88x0/au88x0.c +1 -0
Index: linux-2.6-stable/sound/pci/au88x0/au88x0.c
===================================================================
@@ -366,6 +366,7 @@
 
 // pci_driver definition
 static struct pci_driver driver = {
+	.owner = THIS_MODULE,
 	.name = CARD_NAME_SHORT,
 	.id_table = snd_vortex_ids,
 	.probe = snd_vortex_probe,
sound/pci/ca0106/ca0106_main.c +1 -0
Index: linux-2.6-stable/sound/pci/ca0106/ca0106_main.c
===================================================================
@@ -1381,6 +1381,7 @@
 
 // pci_driver definition
 static struct pci_driver driver = {
+	.owner = THIS_MODULE,
 	.name = "CA0106",
 	.id_table = snd_ca0106_ids,
 	.probe = snd_ca0106_probe,
sound/pci/cs46xx/cs46xx.c +1 -0
Index: linux-2.6-stable/sound/pci/cs46xx/cs46xx.c
===================================================================
@@ -162,6 +162,7 @@
 }
 
 static struct pci_driver driver = {
+	.owner = THIS_MODULE,
 	.name = "Sound Fusion CS46xx",
 	.id_table = snd_cs46xx_ids,
 	.probe = snd_card_cs46xx_probe,
sound/pci/emu10k1/emu10k1.c +1 -0
Index: linux-2.6-stable/sound/pci/emu10k1/emu10k1.c
===================================================================
@@ -222,6 +222,7 @@
 }
 
 static struct pci_driver driver = {
+	.owner = THIS_MODULE,
 	.name = "EMU10K1_Audigy",
 	.id_table = snd_emu10k1_ids,
 	.probe = snd_card_emu10k1_probe,
sound/pci/emu10k1/emu10k1x.c +1 -0
Index: linux-2.6-stable/sound/pci/emu10k1/emu10k1x.c
===================================================================
@@ -1614,6 +1614,7 @@
 
 // pci_driver definition
 static struct pci_driver driver = {
+	.owner = THIS_MODULE,
 	.name = "EMU10K1X",
 	.id_table = snd_emu10k1x_ids,
 	.probe = snd_emu10k1x_probe,
sound/pci/hda/hda_intel.c +1 -0
Index: linux-2.6-stable/sound/pci/hda/hda_intel.c
===================================================================
@@ -1471,6 +1471,7 @@
 
 /* pci_driver definition */
 static struct pci_driver driver = {
+	.owner = THIS_MODULE,
 	.name = "HDA Intel",
 	.id_table = azx_ids,
 	.probe = azx_probe,
sound/pci/ice1712/ice1712.c +1 -0
Index: linux-2.6-stable/sound/pci/ice1712/ice1712.c
===================================================================
@@ -2740,6 +2740,7 @@
 }
 
 static struct pci_driver driver = {
+	.owner = THIS_MODULE,
 	.name = "ICE1712",
 	.id_table = snd_ice1712_ids,
 	.probe = snd_ice1712_probe,
sound/pci/ice1712/ice1724.c +1 -0
Index: linux-2.6-stable/sound/pci/ice1712/ice1724.c
===================================================================
@@ -2320,6 +2320,7 @@
 }
 
 static struct pci_driver driver = {
+	.owner = THIS_MODULE,
 	.name = "ICE1724",
 	.id_table = snd_vt1724_ids,
 	.probe = snd_vt1724_probe,
sound/pci/korg1212/korg1212.c +1 -0
Index: linux-2.6-stable/sound/pci/korg1212/korg1212.c
===================================================================
@@ -2533,6 +2533,7 @@
 }
 
 static struct pci_driver driver = {
+	.owner = THIS_MODULE,
 	.name = "korg1212",
 	.id_table = snd_korg1212_ids,
 	.probe = snd_korg1212_probe,
sound/pci/mixart/mixart.c +1 -0
Index: linux-2.6-stable/sound/pci/mixart/mixart.c
===================================================================
@@ -1423,6 +1423,7 @@
 }
 
 static struct pci_driver driver = {
+	.owner = THIS_MODULE,
 	.name = "Digigram miXart",
 	.id_table = snd_mixart_ids,
 	.probe = snd_mixart_probe,
sound/pci/nm256/nm256.c +1 -0
Index: linux-2.6-stable/sound/pci/nm256/nm256.c
===================================================================
@@ -1635,6 +1635,7 @@
 
 
 static struct pci_driver driver = {
+	.owner = THIS_MODULE,
 	.name = "NeoMagic 256",
 	.id_table = snd_nm256_ids,
 	.probe = snd_nm256_probe,
sound/pci/rme9652/hdsp.c +1 -0
Index: linux-2.6-stable/sound/pci/rme9652/hdsp.c
===================================================================
@@ -5222,6 +5222,7 @@
 }
 
 static struct pci_driver driver = {
+	.owner = THIS_MODULE,
 	.name =     "RME Hammerfall DSP",
 	.id_table = snd_hdsp_ids,
 	.probe =    snd_hdsp_probe,
sound/pci/rme9652/hdspm.c +1 -0
Index: linux-2.6-stable/sound/pci/rme9652/hdspm.c
===================================================================
@@ -3650,6 +3650,7 @@
 }
 
 static struct pci_driver driver = {
+	.owner = THIS_MODULE,
 	.name = "RME Hammerfall DSP MADI",
 	.id_table = snd_hdspm_ids,
 	.probe = snd_hdspm_probe,
sound/pci/rme9652/rme9652.c +1 -0
Index: linux-2.6-stable/sound/pci/rme9652/rme9652.c
===================================================================
@@ -2660,6 +2660,7 @@
 }
 
 static struct pci_driver driver = {
+	.owner	  = THIS_MODULE,
 	.name	  = "RME Digi9652 (Hammerfall)",
 	.id_table = snd_rme9652_ids,
 	.probe	  = snd_rme9652_probe,
sound/pci/trident/trident.c +1 -0
Index: linux-2.6-stable/sound/pci/trident/trident.c
===================================================================
@@ -176,6 +176,7 @@
 }
 
 static struct pci_driver driver = {
+	.owner = THIS_MODULE,
 	.name = "Trident4DWaveAudio",
 	.id_table = snd_trident_ids,
 	.probe = snd_trident_probe,
sound/pci/vx222/vx222.c +1 -0
Index: linux-2.6-stable/sound/pci/vx222/vx222.c
===================================================================
@@ -251,6 +251,7 @@
 }
 
 static struct pci_driver driver = {
+	.owner = THIS_MODULE,
 	.name = "Digigram VX222",
 	.id_table = snd_vx222_ids,
 	.probe = snd_vx222_probe,
sound/pci/ymfpci/ymfpci.c +1 -0
Index: linux-2.6-stable/sound/pci/ymfpci/ymfpci.c
===================================================================
@@ -351,6 +351,7 @@
 }
 
 static struct pci_driver driver = {
+	.owner = THIS_MODULE,
 	.name = "Yamaha DS-XG PCI",
 	.id_table = snd_ymfpci_ids,
 	.probe = snd_card_ymfpci_probe,
sound/pci/ens1370.c +1 -0
Index: linux-2.6-stable/sound/pci/ens1370.c
===================================================================
@@ -2393,6 +2393,7 @@
 }
 
 static struct pci_driver driver = {
+	.owner = THIS_MODULE,
 	.name = DRIVER_NAME,
 	.id_table = snd_audiopci_ids,
 	.probe = snd_audiopci_probe,
#1 lore raw

At Fri, 09 Sep 2005 23:02:58 +0200,

Quoted 9 lines · Laurent Riffard

[1 <text/plain; us-ascii (7bit)>]
Following a thread on LKML
(http://marc.theaimsgroup.com/?l=linux-kernel&m=112569665717371),
here is a patch which adds a symlink to the kernel module in the /sys/pci/drivers/* directories for all the drivers located in linux/sound/pci/.

It's a known problem but we didn't fix it because of compatibility with 2.2/2.4 kernels. We'll solve this problem later.

Takashi

Quoted 447 lines

--

Index: linux-2.6-stable/sound/pci/als4000.c
===================================================================

sound/pci/als4000.c +1 -0
@@ -769,6 +769,7 @@
 }
 
 static struct pci_driver driver = {
+	.owner = THIS_MODULE,
 	.name = "ALS4000",
 	.id_table = snd_als4000_ids,
 	.probe = snd_card_als4000_probe,

Index: linux-2.6-stable/sound/pci/atiixp.c
===================================================================

sound/pci/atiixp.c +1 -0
@@ -1635,6 +1635,7 @@
 }
 
 static struct pci_driver driver = {
+	.owner = THIS_MODULE,
 	.name = "ATI IXP AC97 controller",
 	.id_table = snd_atiixp_ids,
 	.probe = snd_atiixp_probe,

Index: linux-2.6-stable/sound/pci/atiixp_modem.c
===================================================================

sound/pci/atiixp_modem.c +1 -0
@@ -1317,6 +1317,7 @@
 }
 
 static struct pci_driver driver = {
+	.owner = THIS_MODULE,
 	.name = "ATI IXP MC97 controller",
 	.id_table = snd_atiixp_ids,
 	.probe = snd_atiixp_probe,

Index: linux-2.6-stable/sound/pci/azt3328.c
===================================================================

sound/pci/azt3328.c +1 -0
@@ -1510,6 +1510,7 @@
 }
 
 static struct pci_driver driver = {
+	.owner = THIS_MODULE,
 	.name = "AZF3328",
 	.id_table = snd_azf3328_ids,
 	.probe = snd_azf3328_probe,

Index: linux-2.6-stable/sound/pci/bt87x.c
===================================================================

sound/pci/bt87x.c +1 -0
@@ -910,6 +910,7 @@
 };
 
 static struct pci_driver driver = {
+	.owner = THIS_MODULE,
 	.name = "Bt87x",
 	.id_table = snd_bt87x_ids,
 	.probe = snd_bt87x_probe,

Index: linux-2.6-stable/sound/pci/cmipci.c
===================================================================

sound/pci/cmipci.c +1 -0
@@ -3062,6 +3062,7 @@
 
 
 static struct pci_driver driver = {
+	.owner = THIS_MODULE,
 	.name = "C-Media PCI",
 	.id_table = snd_cmipci_ids,
 	.probe = snd_cmipci_probe,

Index: linux-2.6-stable/sound/pci/cs4281.c
===================================================================

sound/pci/cs4281.c +1 -0
@@ -2118,6 +2118,7 @@
 #endif /* CONFIG_PM */
 
 static struct pci_driver driver = {
+	.owner = THIS_MODULE,
 	.name = "CS4281",
 	.id_table = snd_cs4281_ids,
 	.probe = snd_cs4281_probe,

Index: linux-2.6-stable/sound/pci/es1938.c
===================================================================

sound/pci/es1938.c +1 -0
@@ -1752,6 +1752,7 @@
 }
 
 static struct pci_driver driver = {
+	.owner = THIS_MODULE,
 	.name = "ESS ES1938 (Solo-1)",
 	.id_table = snd_es1938_ids,
 	.probe = snd_es1938_probe,

Index: linux-2.6-stable/sound/pci/es1968.c
===================================================================

sound/pci/es1968.c +1 -0
@@ -2781,6 +2781,7 @@
 }
 
 static struct pci_driver driver = {
+	.owner = THIS_MODULE,
 	.name = "ES1968 (ESS Maestro)",
 	.id_table = snd_es1968_ids,
 	.probe = snd_es1968_probe,

Index: linux-2.6-stable/sound/pci/fm801.c
===================================================================

sound/pci/fm801.c +1 -0
@@ -1461,6 +1461,7 @@
 }
 
 static struct pci_driver driver = {
+	.owner = THIS_MODULE,
 	.name = "FM801",
 	.id_table = snd_fm801_ids,
 	.probe = snd_card_fm801_probe,

Index: linux-2.6-stable/sound/pci/intel8x0.c
===================================================================

sound/pci/intel8x0.c +1 -0
@@ -2862,6 +2862,7 @@
 }
 
 static struct pci_driver driver = {
+	.owner = THIS_MODULE,
 	.name = "Intel ICH",
 	.id_table = snd_intel8x0_ids,
 	.probe = snd_intel8x0_probe,

Index: linux-2.6-stable/sound/pci/intel8x0m.c
===================================================================

sound/pci/intel8x0m.c +1 -0
@@ -1370,6 +1370,7 @@
 }
 
 static struct pci_driver driver = {
+	.owner = THIS_MODULE,
 	.name = "Intel ICH Modem",
 	.id_table = snd_intel8x0m_ids,
 	.probe = snd_intel8x0m_probe,

Index: linux-2.6-stable/sound/pci/maestro3.c
===================================================================

sound/pci/maestro3.c +1 -0
@@ -2889,6 +2889,7 @@
 }
 
 static struct pci_driver driver = {
+	.owner = THIS_MODULE,
 	.name = "Maestro3",
 	.id_table = snd_m3_ids,
 	.probe = snd_m3_probe,

Index: linux-2.6-stable/sound/pci/rme32.c
===================================================================

sound/pci/rme32.c +1 -0
@@ -2023,6 +2023,7 @@
 }
 
 static struct pci_driver driver = {
+	.owner =	THIS_MODULE,
 	.name =		"RME Digi32",
 	.id_table =	snd_rme32_ids,
 	.probe =	snd_rme32_probe,

Index: linux-2.6-stable/sound/pci/rme96.c
===================================================================

sound/pci/rme96.c +1 -0
@@ -2429,6 +2429,7 @@
 }
 
 static struct pci_driver driver = {
+	.owner = THIS_MODULE,
 	.name = "RME Digi96",
 	.id_table = snd_rme96_ids,
 	.probe = snd_rme96_probe,

Index: linux-2.6-stable/sound/pci/sonicvibes.c
===================================================================

sound/pci/sonicvibes.c +1 -0
@@ -1514,6 +1514,7 @@
 }
 
 static struct pci_driver driver = {
+	.owner = THIS_MODULE,
 	.name = "S3 SonicVibes",
 	.id_table = snd_sonic_ids,
 	.probe = snd_sonic_probe,

Index: linux-2.6-stable/sound/pci/via82xx.c
===================================================================

sound/pci/via82xx.c +1 -0
@@ -2344,6 +2344,7 @@
 }
 
 static struct pci_driver driver = {
+	.owner = THIS_MODULE,
 	.name = "VIA 82xx Audio",
 	.id_table = snd_via82xx_ids,
 	.probe = snd_via82xx_probe,

Index: linux-2.6-stable/sound/pci/via82xx_modem.c
===================================================================

sound/pci/via82xx_modem.c +1 -0
@@ -1205,6 +1205,7 @@
 }
 
 static struct pci_driver driver = {
+	.owner = THIS_MODULE,
 	.name = "VIA 82xx Modem",
 	.id_table = snd_via82xx_modem_ids,
 	.probe = snd_via82xx_probe,

Index: linux-2.6-stable/sound/pci/ali5451/ali5451.c
===================================================================

sound/pci/ali5451/ali5451.c +1 -0
@@ -2416,6 +2416,7 @@
 }
 
 static struct pci_driver driver = {
+	.owner = THIS_MODULE,
 	.name = "ALI 5451",
 	.id_table = snd_ali_ids,
 	.probe = snd_ali_probe,

Index: linux-2.6-stable/sound/pci/au88x0/au88x0.c
===================================================================

sound/pci/au88x0/au88x0.c +1 -0
@@ -366,6 +366,7 @@
 
 // pci_driver definition
 static struct pci_driver driver = {
+	.owner = THIS_MODULE,
 	.name = CARD_NAME_SHORT,
 	.id_table = snd_vortex_ids,
 	.probe = snd_vortex_probe,

Index: linux-2.6-stable/sound/pci/ca0106/ca0106_main.c
===================================================================

sound/pci/ca0106/ca0106_main.c +1 -0
@@ -1381,6 +1381,7 @@
 
 // pci_driver definition
 static struct pci_driver driver = {
+	.owner = THIS_MODULE,
 	.name = "CA0106",
 	.id_table = snd_ca0106_ids,
 	.probe = snd_ca0106_probe,

Index: linux-2.6-stable/sound/pci/cs46xx/cs46xx.c
===================================================================

sound/pci/cs46xx/cs46xx.c +1 -0
@@ -162,6 +162,7 @@
 }
 
 static struct pci_driver driver = {
+	.owner = THIS_MODULE,
 	.name = "Sound Fusion CS46xx",
 	.id_table = snd_cs46xx_ids,
 	.probe = snd_card_cs46xx_probe,

Index: linux-2.6-stable/sound/pci/emu10k1/emu10k1.c
===================================================================

sound/pci/emu10k1/emu10k1.c +1 -0
@@ -222,6 +222,7 @@
 }
 
 static struct pci_driver driver = {
+	.owner = THIS_MODULE,
 	.name = "EMU10K1_Audigy",
 	.id_table = snd_emu10k1_ids,
 	.probe = snd_card_emu10k1_probe,

Index: linux-2.6-stable/sound/pci/emu10k1/emu10k1x.c
===================================================================

sound/pci/emu10k1/emu10k1x.c +1 -0
@@ -1614,6 +1614,7 @@
 
 // pci_driver definition
 static struct pci_driver driver = {
+	.owner = THIS_MODULE,
 	.name = "EMU10K1X",
 	.id_table = snd_emu10k1x_ids,
 	.probe = snd_emu10k1x_probe,

Index: linux-2.6-stable/sound/pci/hda/hda_intel.c
===================================================================

sound/pci/hda/hda_intel.c +1 -0
@@ -1471,6 +1471,7 @@
 
 /* pci_driver definition */
 static struct pci_driver driver = {
+	.owner = THIS_MODULE,
 	.name = "HDA Intel",
 	.id_table = azx_ids,
 	.probe = azx_probe,

Index: linux-2.6-stable/sound/pci/ice1712/ice1712.c
===================================================================

sound/pci/ice1712/ice1712.c +1 -0
@@ -2740,6 +2740,7 @@
 }
 
 static struct pci_driver driver = {
+	.owner = THIS_MODULE,
 	.name = "ICE1712",
 	.id_table = snd_ice1712_ids,
 	.probe = snd_ice1712_probe,

Index: linux-2.6-stable/sound/pci/ice1712/ice1724.c
===================================================================

sound/pci/ice1712/ice1724.c +1 -0
@@ -2320,6 +2320,7 @@
 }
 
 static struct pci_driver driver = {
+	.owner = THIS_MODULE,
 	.name = "ICE1724",
 	.id_table = snd_vt1724_ids,
 	.probe = snd_vt1724_probe,

Index: linux-2.6-stable/sound/pci/korg1212/korg1212.c
===================================================================

sound/pci/korg1212/korg1212.c +1 -0
@@ -2533,6 +2533,7 @@
 }
 
 static struct pci_driver driver = {
+	.owner = THIS_MODULE,
 	.name = "korg1212",
 	.id_table = snd_korg1212_ids,
 	.probe = snd_korg1212_probe,

Index: linux-2.6-stable/sound/pci/mixart/mixart.c
===================================================================

sound/pci/mixart/mixart.c +1 -0
@@ -1423,6 +1423,7 @@
 }
 
 static struct pci_driver driver = {
+	.owner = THIS_MODULE,
 	.name = "Digigram miXart",
 	.id_table = snd_mixart_ids,
 	.probe = snd_mixart_probe,

Index: linux-2.6-stable/sound/pci/nm256/nm256.c
===================================================================

sound/pci/nm256/nm256.c +1 -0
@@ -1635,6 +1635,7 @@
 
 
 static struct pci_driver driver = {
+	.owner = THIS_MODULE,
 	.name = "NeoMagic 256",
 	.id_table = snd_nm256_ids,
 	.probe = snd_nm256_probe,

Index: linux-2.6-stable/sound/pci/rme9652/hdsp.c
===================================================================

sound/pci/rme9652/hdsp.c +1 -0
@@ -5222,6 +5222,7 @@
 }
 
 static struct pci_driver driver = {
+	.owner = THIS_MODULE,
 	.name =     "RME Hammerfall DSP",
 	.id_table = snd_hdsp_ids,
 	.probe =    snd_hdsp_probe,

Index: linux-2.6-stable/sound/pci/rme9652/hdspm.c
===================================================================

sound/pci/rme9652/hdspm.c +1 -0
@@ -3650,6 +3650,7 @@
 }
 
 static struct pci_driver driver = {
+	.owner = THIS_MODULE,
 	.name = "RME Hammerfall DSP MADI",
 	.id_table = snd_hdspm_ids,
 	.probe = snd_hdspm_probe,

Index: linux-2.6-stable/sound/pci/rme9652/rme9652.c
===================================================================

sound/pci/rme9652/rme9652.c +1 -0
@@ -2660,6 +2660,7 @@
 }
 
 static struct pci_driver driver = {
+	.owner	  = THIS_MODULE,
 	.name	  = "RME Digi9652 (Hammerfall)",
 	.id_table = snd_rme9652_ids,
 	.probe	  = snd_rme9652_probe,

Index: linux-2.6-stable/sound/pci/trident/trident.c
===================================================================

sound/pci/trident/trident.c +1 -0
@@ -176,6 +176,7 @@
 }
 
 static struct pci_driver driver = {
+	.owner = THIS_MODULE,
 	.name = "Trident4DWaveAudio",
 	.id_table = snd_trident_ids,
 	.probe = snd_trident_probe,

Index: linux-2.6-stable/sound/pci/vx222/vx222.c
===================================================================

sound/pci/vx222/vx222.c +1 -0
@@ -251,6 +251,7 @@
 }
 
 static struct pci_driver driver = {
+	.owner = THIS_MODULE,
 	.name = "Digigram VX222",
 	.id_table = snd_vx222_ids,
 	.probe = snd_vx222_probe,

Index: linux-2.6-stable/sound/pci/ymfpci/ymfpci.c
===================================================================

sound/pci/ymfpci/ymfpci.c +1 -0
@@ -351,6 +351,7 @@
 }
 
 static struct pci_driver driver = {
+	.owner = THIS_MODULE,
 	.name = "Yamaha DS-XG PCI",
 	.id_table = snd_ymfpci_ids,
 	.probe = snd_card_ymfpci_probe,

Index: linux-2.6-stable/sound/pci/ens1370.c
===================================================================

sound/pci/ens1370.c +1 -0
@@ -2393,6 +2393,7 @@
 }
 
 static struct pci_driver driver = {
+	.owner = THIS_MODULE,
 	.name = DRIVER_NAME,
 	.id_table = snd_audiopci_ids,
 	.probe = snd_audiopci_probe,
Quoted 2 lines

[2 OpenPGP digital signature <application/pgp-signature (7bit)>]

-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf

maintainer
#2 lore raw
Quoted 10 lines · Takashi Iwai
Quoted 6 lines · Laurent Riffard

Following a thread on LKML
(http://marc.theaimsgroup.com/?l=linux-kernel&m=112569665717371),
here is a patch which adds a symlink to the kernel module in the /sys/pci/drivers/* directories for all the drivers located in linux/sound/pci/.

It's a known problem but we didn't fix it because of compatibility with 2.2/2.4 kernels. We'll solve this problem later.

Solved now.

Regards,
Clemens

-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf