From: Laurent Riffard <laurent.riffard@free.fr>
To: alsa-devel@lists.sourceforge.net
Subject: [PATCH] add a symlink to module in /sys/pci/drivers/*
Date: Fri, 09 Sep 2005 23:02:58 +0200 [thread overview]
Message-ID: <4321F882.1050103@free.fr> (raw)
[-- Attachment #1: Type: text/plain, Size: 17244 bytes --]
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/.
Signed-off-by: Laurent Riffard <laurent.riffard@free.fr>
--
Index: linux-2.6-stable/sound/pci/als4000.c
===================================================================
--- linux-2.6-stable.orig/sound/pci/als4000.c 2005-09-09 21:19:42.534079750 +0200
+++ linux-2.6-stable/sound/pci/als4000.c 2005-09-09 22:04:28.828006000 +0200
@@ -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
===================================================================
--- linux-2.6-stable.orig/sound/pci/atiixp.c 2005-09-09 21:19:42.538080000 +0200
+++ linux-2.6-stable/sound/pci/atiixp.c 2005-09-09 22:04:28.832006250 +0200
@@ -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
===================================================================
--- linux-2.6-stable.orig/sound/pci/atiixp_modem.c 2005-09-09 21:19:42.558081250 +0200
+++ linux-2.6-stable/sound/pci/atiixp_modem.c 2005-09-09 22:04:28.840006750 +0200
@@ -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
===================================================================
--- linux-2.6-stable.orig/sound/pci/azt3328.c 2005-09-09 21:19:42.598083750 +0200
+++ linux-2.6-stable/sound/pci/azt3328.c 2005-09-09 22:04:28.844007000 +0200
@@ -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
===================================================================
--- linux-2.6-stable.orig/sound/pci/bt87x.c 2005-09-09 21:19:42.614084750 +0200
+++ linux-2.6-stable/sound/pci/bt87x.c 2005-09-09 22:04:28.852007500 +0200
@@ -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
===================================================================
--- linux-2.6-stable.orig/sound/pci/cmipci.c 2005-09-09 21:19:42.734092250 +0200
+++ linux-2.6-stable/sound/pci/cmipci.c 2005-09-09 22:04:28.868008500 +0200
@@ -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
===================================================================
--- linux-2.6-stable.orig/sound/pci/cs4281.c 2005-09-09 21:19:43.310128250 +0200
+++ linux-2.6-stable/sound/pci/cs4281.c 2005-09-09 22:04:28.872008750 +0200
@@ -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
===================================================================
--- linux-2.6-stable.orig/sound/pci/es1938.c 2005-09-09 21:19:45.182245250 +0200
+++ linux-2.6-stable/sound/pci/es1938.c 2005-09-09 22:04:28.880009250 +0200
@@ -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
===================================================================
--- linux-2.6-stable.orig/sound/pci/es1968.c 2005-09-09 21:19:45.318253750 +0200
+++ linux-2.6-stable/sound/pci/es1968.c 2005-09-09 22:04:28.888009750 +0200
@@ -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
===================================================================
--- linux-2.6-stable.orig/sound/pci/fm801.c 2005-09-09 21:19:45.434261000 +0200
+++ linux-2.6-stable/sound/pci/fm801.c 2005-09-09 22:04:28.892010000 +0200
@@ -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
===================================================================
--- linux-2.6-stable.orig/sound/pci/intel8x0.c 2005-09-09 21:19:46.294314750 +0200
+++ linux-2.6-stable/sound/pci/intel8x0.c 2005-09-09 22:04:28.896010250 +0200
@@ -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
===================================================================
--- linux-2.6-stable.orig/sound/pci/intel8x0m.c 2005-09-09 21:19:46.322316500 +0200
+++ linux-2.6-stable/sound/pci/intel8x0m.c 2005-09-09 22:04:28.900010500 +0200
@@ -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
===================================================================
--- linux-2.6-stable.orig/sound/pci/maestro3.c 2005-09-09 21:19:46.426323000 +0200
+++ linux-2.6-stable/sound/pci/maestro3.c 2005-09-09 22:04:28.908011000 +0200
@@ -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
===================================================================
--- linux-2.6-stable.orig/sound/pci/rme32.c 2005-09-09 21:19:46.678338750 +0200
+++ linux-2.6-stable/sound/pci/rme32.c 2005-09-09 22:04:28.912011250 +0200
@@ -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
===================================================================
--- linux-2.6-stable.orig/sound/pci/rme96.c 2005-09-09 21:19:46.734342250 +0200
+++ linux-2.6-stable/sound/pci/rme96.c 2005-09-09 22:04:28.924012000 +0200
@@ -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
===================================================================
--- linux-2.6-stable.orig/sound/pci/sonicvibes.c 2005-09-09 21:19:46.982357750 +0200
+++ linux-2.6-stable/sound/pci/sonicvibes.c 2005-09-09 22:04:28.928012250 +0200
@@ -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
===================================================================
--- linux-2.6-stable.orig/sound/pci/via82xx.c 2005-09-09 21:19:47.462387750 +0200
+++ linux-2.6-stable/sound/pci/via82xx.c 2005-09-09 22:04:28.940013000 +0200
@@ -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
===================================================================
--- linux-2.6-stable.orig/sound/pci/via82xx_modem.c 2005-09-09 21:19:47.718403750 +0200
+++ linux-2.6-stable/sound/pci/via82xx_modem.c 2005-09-09 22:04:28.956014000 +0200
@@ -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
===================================================================
--- linux-2.6-stable.orig/sound/pci/ali5451/ali5451.c 2005-09-09 21:19:42.486076750 +0200
+++ linux-2.6-stable/sound/pci/ali5451/ali5451.c 2005-09-09 22:04:28.980015500 +0200
@@ -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
===================================================================
--- linux-2.6-stable.orig/sound/pci/au88x0/au88x0.c 2005-09-09 21:19:42.582082750 +0200
+++ linux-2.6-stable/sound/pci/au88x0/au88x0.c 2005-09-09 22:04:29.000016750 +0200
@@ -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
===================================================================
--- linux-2.6-stable.orig/sound/pci/ca0106/ca0106_main.c 2005-09-09 21:19:42.682089000 +0200
+++ linux-2.6-stable/sound/pci/ca0106/ca0106_main.c 2005-09-09 22:04:29.012017500 +0200
@@ -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
===================================================================
--- linux-2.6-stable.orig/sound/pci/cs46xx/cs46xx.c 2005-09-09 21:19:43.558143750 +0200
+++ linux-2.6-stable/sound/pci/cs46xx/cs46xx.c 2005-09-09 22:04:29.020018000 +0200
@@ -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
===================================================================
--- linux-2.6-stable.orig/sound/pci/emu10k1/emu10k1.c 2005-09-09 21:19:43.702152750 +0200
+++ linux-2.6-stable/sound/pci/emu10k1/emu10k1.c 2005-09-09 22:04:29.032018750 +0200
@@ -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
===================================================================
--- linux-2.6-stable.orig/sound/pci/emu10k1/emu10k1x.c 2005-09-09 21:19:44.094177250 +0200
+++ linux-2.6-stable/sound/pci/emu10k1/emu10k1x.c 2005-09-09 22:04:29.036019000 +0200
@@ -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
===================================================================
--- linux-2.6-stable.orig/sound/pci/hda/hda_intel.c 2005-09-09 21:19:46.018297500 +0200
+++ linux-2.6-stable/sound/pci/hda/hda_intel.c 2005-09-09 22:04:29.048019750 +0200
@@ -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
===================================================================
--- linux-2.6-stable.orig/sound/pci/ice1712/ice1712.c 2005-09-09 21:19:46.194308500 +0200
+++ linux-2.6-stable/sound/pci/ice1712/ice1712.c 2005-09-09 22:04:30.164089500 +0200
@@ -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
===================================================================
--- linux-2.6-stable.orig/sound/pci/ice1712/ice1724.c 2005-09-09 21:19:46.242311500 +0200
+++ linux-2.6-stable/sound/pci/ice1712/ice1724.c 2005-09-09 22:04:30.240094250 +0200
@@ -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
===================================================================
--- linux-2.6-stable.orig/sound/pci/korg1212/korg1212.c 2005-09-09 21:19:46.386320500 +0200
+++ linux-2.6-stable/sound/pci/korg1212/korg1212.c 2005-09-09 22:04:30.268096000 +0200
@@ -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
===================================================================
--- linux-2.6-stable.orig/sound/pci/mixart/mixart.c 2005-09-09 21:19:46.598333750 +0200
+++ linux-2.6-stable/sound/pci/mixart/mixart.c 2005-09-09 22:04:30.280096750 +0200
@@ -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
===================================================================
--- linux-2.6-stable.orig/sound/pci/nm256/nm256.c 2005-09-09 21:19:46.650337000 +0200
+++ linux-2.6-stable/sound/pci/nm256/nm256.c 2005-09-09 22:04:30.296097750 +0200
@@ -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
===================================================================
--- linux-2.6-stable.orig/sound/pci/rme9652/hdsp.c 2005-09-09 21:19:46.822347750 +0200
+++ linux-2.6-stable/sound/pci/rme9652/hdsp.c 2005-09-09 22:04:30.320099250 +0200
@@ -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
===================================================================
--- linux-2.6-stable.orig/sound/pci/rme9652/hdspm.c 2005-09-09 21:19:46.830348250 +0200
+++ linux-2.6-stable/sound/pci/rme9652/hdspm.c 2005-09-09 22:04:30.336100250 +0200
@@ -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
===================================================================
--- linux-2.6-stable.orig/sound/pci/rme9652/rme9652.c 2005-09-09 21:19:46.942355250 +0200
+++ linux-2.6-stable/sound/pci/rme9652/rme9652.c 2005-09-09 22:04:30.348101000 +0200
@@ -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
===================================================================
--- linux-2.6-stable.orig/sound/pci/trident/trident.c 2005-09-09 21:19:47.014359750 +0200
+++ linux-2.6-stable/sound/pci/trident/trident.c 2005-09-09 22:04:30.356101500 +0200
@@ -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
===================================================================
--- linux-2.6-stable.orig/sound/pci/vx222/vx222.c 2005-09-09 21:19:47.734404750 +0200
+++ linux-2.6-stable/sound/pci/vx222/vx222.c 2005-09-09 22:04:30.368102250 +0200
@@ -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
===================================================================
--- linux-2.6-stable.orig/sound/pci/ymfpci/ymfpci.c 2005-09-09 21:19:47.758406250 +0200
+++ linux-2.6-stable/sound/pci/ymfpci/ymfpci.c 2005-09-09 22:04:30.372102500 +0200
@@ -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
===================================================================
--- linux-2.6-stable.orig/sound/pci/ens1370.c 2005-09-09 21:19:45.178245000 +0200
+++ linux-2.6-stable/sound/pci/ens1370.c 2005-09-09 22:04:30.380103000 +0200
@@ -2393,6 +2393,7 @@
}
static struct pci_driver driver = {
+ .owner = THIS_MODULE,
.name = DRIVER_NAME,
.id_table = snd_audiopci_ids,
.probe = snd_audiopci_probe,
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 252 bytes --]
next reply other threads:[~2005-09-09 21:02 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-09-09 21:02 Laurent Riffard [this message]
2005-09-10 13:58 ` [PATCH] add a symlink to module in /sys/pci/drivers/* Takashi Iwai
2005-09-12 7:31 ` Clemens Ladisch
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4321F882.1050103@free.fr \
--to=laurent.riffard@free.fr \
--cc=alsa-devel@lists.sourceforge.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.