Skip to content

Commit a2bbbc0

Browse files
Kenrik KretzschmarJaroslav Kysela
authored andcommitted
[ALSA] adding __devinitdata to pci_device_id
Refering to <kernelsource>/Documentation/pci.txt the struct pci_device_id can be released after loading the module. Signed-off-by: Kenrik Kretzschmar <henne@nachtwindheim.de> Signed-off-by: Takashi Iwai <tiwai@suse.de>
1 parent 396c9b9 commit a2bbbc0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎Documentation/sound/alsa/DocBook/writing-an-alsa-driver.tmpl‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1172,7 +1172,7 @@
11721172
}
11731173

11741174
/* PCI IDs */
1175-
static struct pci_device_id snd_mychip_ids[] = {
1175+
static struct pci_device_id snd_mychip_ids[] __devinitdata = {
11761176
{ PCI_VENDOR_ID_FOO, PCI_DEVICE_ID_BAR,
11771177
PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0, },
11781178
....
@@ -1565,7 +1565,7 @@
15651565
<informalexample>
15661566
<programlisting>
15671567
<![CDATA[
1568-
static struct pci_device_id snd_mychip_ids[] = {
1568+
static struct pci_device_id snd_mychip_ids[] __devinitdata = {
15691569
{ PCI_VENDOR_ID_FOO, PCI_DEVICE_ID_BAR,
15701570
PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0, },
15711571
....

0 commit comments

Comments
 (0)