Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[ALSA] Fix section mismatch errors in ALSA PCI drivers

Fixed 'section mismatch' errors in ALSA PCI drivers:
- removed invalid __devinitdata from pci id tables
- fix/remove __devinit of functions called in suspend/resume

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>

authored by

Takashi Iwai and committed by
Jaroslav Kysela
f40b6890 562b590d

+85 -75
+2 -2
Documentation/sound/alsa/DocBook/writing-an-alsa-driver.tmpl
··· 1172 1172 } 1173 1173 1174 1174 /* PCI IDs */ 1175 - static struct pci_device_id snd_mychip_ids[] __devinitdata = { 1175 + static struct pci_device_id snd_mychip_ids[] = { 1176 1176 { PCI_VENDOR_ID_FOO, PCI_DEVICE_ID_BAR, 1177 1177 PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0, }, 1178 1178 .... ··· 1565 1565 <informalexample> 1566 1566 <programlisting> 1567 1567 <![CDATA[ 1568 - static struct pci_device_id snd_mychip_ids[] __devinitdata = { 1568 + static struct pci_device_id snd_mychip_ids[] = { 1569 1569 { PCI_VENDOR_ID_FOO, PCI_DEVICE_ID_BAR, 1570 1570 PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0, }, 1571 1571 ....
+1
include/sound/cs46xx.h
··· 1704 1704 int acpi_port; 1705 1705 struct snd_kcontrol *eapd_switch; /* for amplifier hack */ 1706 1706 int accept_valid; /* accept mmap valid (for OSS) */ 1707 + int in_suspend; 1707 1708 1708 1709 struct gameport *gameport; 1709 1710
+4 -4
sound/pci/ad1889.c
··· 241 241 } 242 242 } 243 243 244 - static inline u16 244 + static u16 245 245 snd_ad1889_ac97_read(struct snd_ac97 *ac97, unsigned short reg) 246 246 { 247 247 struct snd_ad1889 *chip = ac97->private_data; 248 248 return ad1889_readw(chip, AD_AC97_BASE + reg); 249 249 } 250 250 251 - static inline void 251 + static void 252 252 snd_ad1889_ac97_write(struct snd_ac97 *ac97, unsigned short reg, unsigned short val) 253 253 { 254 254 struct snd_ad1889 *chip = ac97->private_data; ··· 873 873 return 0; 874 874 } 875 875 876 - static inline int 876 + static int 877 877 snd_ad1889_dev_free(struct snd_device *device) 878 878 { 879 879 struct snd_ad1889 *chip = device->device_data; ··· 1051 1051 pci_set_drvdata(pci, NULL); 1052 1052 } 1053 1053 1054 - static struct pci_device_id snd_ad1889_ids[] __devinitdata = { 1054 + static struct pci_device_id snd_ad1889_ids[] = { 1055 1055 { PCI_DEVICE(PCI_VENDOR_ID_ANALOG_DEVICES, PCI_DEVICE_ID_AD1889JS) }, 1056 1056 { 0, }, 1057 1057 };
+1 -1
sound/pci/ali5451/ali5451.c
··· 279 279 #endif 280 280 }; 281 281 282 - static struct pci_device_id snd_ali_ids[] __devinitdata = { 282 + static struct pci_device_id snd_ali_ids[] = { 283 283 {PCI_DEVICE(PCI_VENDOR_ID_AL, PCI_DEVICE_ID_AL_M5451), 0, 0, 0}, 284 284 {0, } 285 285 };
+1 -1
sound/pci/als300.c
··· 146 146 int block_counter_register; 147 147 }; 148 148 149 - static struct pci_device_id snd_als300_ids[] __devinitdata = { 149 + static struct pci_device_id snd_als300_ids[] = { 150 150 { 0x4005, 0x0300, PCI_ANY_ID, PCI_ANY_ID, 0, 0, DEVICE_ALS300 }, 151 151 { 0x4005, 0x0308, PCI_ANY_ID, PCI_ANY_ID, 0, 0, DEVICE_ALS300_PLUS }, 152 152 { 0, }
+1 -1
sound/pci/als4000.c
··· 116 116 #endif 117 117 }; 118 118 119 - static struct pci_device_id snd_als4000_ids[] __devinitdata = { 119 + static struct pci_device_id snd_als4000_ids[] = { 120 120 { 0x4005, 0x4000, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0, }, /* ALS4000 */ 121 121 { 0, } 122 122 };
+1 -1
sound/pci/atiixp.c
··· 284 284 285 285 /* 286 286 */ 287 - static struct pci_device_id snd_atiixp_ids[] __devinitdata = { 287 + static struct pci_device_id snd_atiixp_ids[] = { 288 288 { 0x1002, 0x4341, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0 }, /* SB200 */ 289 289 { 0x1002, 0x4361, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0 }, /* SB300 */ 290 290 { 0x1002, 0x4370, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0 }, /* SB400 */
+1 -1
sound/pci/atiixp_modem.c
··· 262 262 263 263 /* 264 264 */ 265 - static struct pci_device_id snd_atiixp_ids[] __devinitdata = { 265 + static struct pci_device_id snd_atiixp_ids[] = { 266 266 { 0x1002, 0x434d, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0 }, /* SB200 */ 267 267 { 0x1002, 0x4378, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0 }, /* SB400 */ 268 268 { 0, }
+1 -1
sound/pci/au88x0/au8810.c
··· 1 1 #include "au8810.h" 2 2 #include "au88x0.h" 3 - static struct pci_device_id snd_vortex_ids[] __devinitdata = { 3 + static struct pci_device_id snd_vortex_ids[] = { 4 4 {PCI_VENDOR_ID_AUREAL, PCI_DEVICE_ID_AUREAL_ADVANTAGE, 5 5 PCI_ANY_ID, PCI_ANY_ID, 0, 0, 1,}, 6 6 {0,}
+1 -1
sound/pci/au88x0/au8820.c
··· 1 1 #include "au8820.h" 2 2 #include "au88x0.h" 3 - static struct pci_device_id snd_vortex_ids[] __devinitdata = { 3 + static struct pci_device_id snd_vortex_ids[] = { 4 4 {PCI_VENDOR_ID_AUREAL, PCI_DEVICE_ID_AUREAL_VORTEX_1, 5 5 PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0,}, 6 6 {0,}
+1 -1
sound/pci/au88x0/au8830.c
··· 1 1 #include "au8830.h" 2 2 #include "au88x0.h" 3 - static struct pci_device_id snd_vortex_ids[] __devinitdata = { 3 + static struct pci_device_id snd_vortex_ids[] = { 4 4 {PCI_VENDOR_ID_AUREAL, PCI_DEVICE_ID_AUREAL_VORTEX_2, 5 5 PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0,}, 6 6 {0,}
+2 -1
sound/pci/au88x0/au88x0.h
··· 270 270 271 271 /* A3D functions. */ 272 272 #ifndef CHIP_AU8820 273 - static void vortex_Vort3D(vortex_t * v, int en); 273 + static void vortex_Vort3D_enable(vortex_t * v); 274 + static void vortex_Vort3D_disable(vortex_t * v); 274 275 static void vortex_Vort3D_connect(vortex_t * vortex, int en); 275 276 static void vortex_Vort3D_InitializeSource(a3dsrc_t * a, int en); 276 277 #endif
+14 -15
sound/pci/au88x0/au88x0_a3d.c
··· 593 593 static int vortex_a3d_register_controls(vortex_t * vortex); 594 594 static void vortex_a3d_unregister_controls(vortex_t * vortex); 595 595 /* A3D base support init/shudown */ 596 - static void vortex_Vort3D(vortex_t * v, int en) 596 + static void __devinit vortex_Vort3D_enable(vortex_t * v) 597 597 { 598 598 int i; 599 - if (en) { 600 - Vort3DRend_Initialize(v, XT_HEADPHONE); 601 - for (i = 0; i < NR_A3D; i++) { 602 - vortex_A3dSourceHw_Initialize(v, i % 4, i >> 2); 603 - a3dsrc_ZeroStateA3D(&(v->a3d[0])); 604 - } 605 - } else { 606 - vortex_XtalkHw_Disable(v); 599 + 600 + Vort3DRend_Initialize(v, XT_HEADPHONE); 601 + for (i = 0; i < NR_A3D; i++) { 602 + vortex_A3dSourceHw_Initialize(v, i % 4, i >> 2); 603 + a3dsrc_ZeroStateA3D(&(v->a3d[0])); 607 604 } 608 605 /* Register ALSA controls */ 609 - if (en) { 610 - vortex_a3d_register_controls(v); 611 - } else { 612 - vortex_a3d_unregister_controls(v); 613 - } 606 + vortex_a3d_register_controls(v); 607 + } 608 + 609 + static void vortex_Vort3D_disable(vortex_t * v) 610 + { 611 + vortex_XtalkHw_Disable(v); 612 + vortex_a3d_unregister_controls(v); 614 613 } 615 614 616 615 /* Make A3D subsystem connections. */ ··· 854 855 }; 855 856 856 857 /* Control (un)registration. */ 857 - static int vortex_a3d_register_controls(vortex_t * vortex) 858 + static int __devinit vortex_a3d_register_controls(vortex_t * vortex) 858 859 { 859 860 struct snd_kcontrol *kcontrol; 860 861 int err, i;
+2 -2
sound/pci/au88x0/au88x0_core.c
··· 2690 2690 #ifndef CHIP_AU8820 2691 2691 vortex_eq_init(vortex); 2692 2692 vortex_spdif_init(vortex, 48000, 1); 2693 - vortex_Vort3D(vortex, 1); 2693 + vortex_Vort3D_enable(vortex); 2694 2694 #endif 2695 2695 #ifndef CHIP_AU8810 2696 2696 vortex_wt_init(vortex); ··· 2718 2718 printk(KERN_INFO "Vortex: shutdown..."); 2719 2719 #ifndef CHIP_AU8820 2720 2720 vortex_eq_free(vortex); 2721 - vortex_Vort3D(vortex, 0); 2721 + vortex_Vort3D_disable(vortex); 2722 2722 #endif 2723 2723 //vortex_disable_timer_int(vortex); 2724 2724 vortex_disable_int(vortex);
+1 -1
sound/pci/azt3328.c
··· 238 238 #endif 239 239 }; 240 240 241 - static const struct pci_device_id snd_azf3328_ids[] __devinitdata = { 241 + static const struct pci_device_id snd_azf3328_ids[] = { 242 242 { 0x122D, 0x50DC, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0 }, /* PCI168/3328 */ 243 243 { 0x122D, 0x80DA, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0 }, /* 3328 */ 244 244 { 0, }
+1 -1
sound/pci/bt87x.c
··· 774 774 .driver_data = rate } 775 775 776 776 /* driver_data is the default digital_rate value for that device */ 777 - static struct pci_device_id snd_bt87x_ids[] __devinitdata = { 777 + static struct pci_device_id snd_bt87x_ids[] = { 778 778 /* Hauppauge WinTV series */ 779 779 BT_DEVICE(PCI_DEVICE_ID_BROOKTREE_878, 0x0070, 0x13eb, 32000), 780 780 /* Hauppauge WinTV series */
+1 -1
sound/pci/ca0106/ca0106_main.c
··· 1602 1602 } 1603 1603 1604 1604 // PCI IDs 1605 - static struct pci_device_id snd_ca0106_ids[] __devinitdata = { 1605 + static struct pci_device_id snd_ca0106_ids[] = { 1606 1606 { 0x1102, 0x0007, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0 }, /* Audigy LS or Live 24bit */ 1607 1607 { 0, } 1608 1608 };
+1 -1
sound/pci/cmipci.c
··· 2609 2609 #endif 2610 2610 2611 2611 2612 - static struct pci_device_id snd_cmipci_ids[] __devinitdata = { 2612 + static struct pci_device_id snd_cmipci_ids[] = { 2613 2613 {PCI_VENDOR_ID_CMEDIA, PCI_DEVICE_ID_CMEDIA_CM8338A, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0}, 2614 2614 {PCI_VENDOR_ID_CMEDIA, PCI_DEVICE_ID_CMEDIA_CM8338B, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0}, 2615 2615 {PCI_VENDOR_ID_CMEDIA, PCI_DEVICE_ID_CMEDIA_CM8738, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0},
+1 -1
sound/pci/cs4281.c
··· 494 494 495 495 static irqreturn_t snd_cs4281_interrupt(int irq, void *dev_id, struct pt_regs *regs); 496 496 497 - static struct pci_device_id snd_cs4281_ids[] __devinitdata = { 497 + static struct pci_device_id snd_cs4281_ids[] = { 498 498 { 0x1013, 0x6005, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0, }, /* CS4281 */ 499 499 { 0, } 500 500 };
+1 -1
sound/pci/cs46xx/cs46xx.c
··· 65 65 module_param_array(mmap_valid, bool, NULL, 0444); 66 66 MODULE_PARM_DESC(mmap_valid, "Support OSS mmap."); 67 67 68 - static struct pci_device_id snd_cs46xx_ids[] __devinitdata = { 68 + static struct pci_device_id snd_cs46xx_ids[] = { 69 69 { 0x1013, 0x6001, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0, }, /* CS4280 */ 70 70 { 0x1013, 0x6003, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0, }, /* CS4612 */ 71 71 { 0x1013, 0x6004, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0, }, /* CS4615 */
+6 -1
sound/pci/cs46xx/cs46xx_lib.c
··· 2317 2317 2318 2318 #ifdef CONFIG_SND_CS46XX_NEW_DSP 2319 2319 /* Only available on the Hercules Game Theater XP soundcard */ 2320 - static struct snd_kcontrol_new snd_hercules_controls[] __devinitdata = { 2320 + static struct snd_kcontrol_new snd_hercules_controls[] = { 2321 2321 { 2322 2322 .iface = SNDRV_CTL_ELEM_IFACE_MIXER, 2323 2323 .name = "Optical/Coaxial SPDIF Input Switch", ··· 3458 3458 snd_printdd ("initializing Hercules mixer\n"); 3459 3459 3460 3460 #ifdef CONFIG_SND_CS46XX_NEW_DSP 3461 + if (chip->in_suspend) 3462 + return; 3463 + 3461 3464 for (idx = 0 ; idx < ARRAY_SIZE(snd_hercules_controls); idx++) { 3462 3465 struct snd_kcontrol *kctl; 3463 3466 ··· 3672 3669 int amp_saved; 3673 3670 3674 3671 snd_power_change_state(card, SNDRV_CTL_POWER_D3hot); 3672 + chip->in_suspend = 1; 3675 3673 snd_pcm_suspend_all(chip->pcm); 3676 3674 // chip->ac97_powerdown = snd_cs46xx_codec_read(chip, AC97_POWER_CONTROL); 3677 3675 // chip->ac97_general_purpose = snd_cs46xx_codec_read(chip, BA0_AC97_GENERAL_PURPOSE); ··· 3726 3722 else 3727 3723 chip->active_ctrl(chip, -1); /* disable CLKRUN */ 3728 3724 chip->amplifier = amp_saved; 3725 + chip->in_suspend = 0; 3729 3726 snd_power_change_state(card, SNDRV_CTL_POWER_D0); 3730 3727 return 0; 3731 3728 }
+1 -1
sound/pci/cs5535audio/cs5535audio.c
··· 67 67 module_param_array(enable, bool, NULL, 0444); 68 68 MODULE_PARM_DESC(enable, "Enable " DRIVER_NAME); 69 69 70 - static struct pci_device_id snd_cs5535audio_ids[] __devinitdata = { 70 + static struct pci_device_id snd_cs5535audio_ids[] = { 71 71 { PCI_DEVICE(PCI_VENDOR_ID_NS, PCI_DEVICE_ID_NS_CS5535_AUDIO) }, 72 72 { PCI_DEVICE(PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_CS5536_AUDIO) }, 73 73 {}
+1 -1
sound/pci/emu10k1/emu10k1.c
··· 77 77 /* 78 78 * Class 0401: 1102:0008 (rev 00) Subsystem: 1102:1001 -> Audigy2 Value Model:SB0400 79 79 */ 80 - static struct pci_device_id snd_emu10k1_ids[] __devinitdata = { 80 + static struct pci_device_id snd_emu10k1_ids[] = { 81 81 { 0x1102, 0x0002, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0 }, /* EMU10K1 */ 82 82 { 0x1102, 0x0004, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 1 }, /* Audigy */ 83 83 { 0x1102, 0x0008, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 1 }, /* Audigy 2 Value SB0400 */
+7 -3
sound/pci/emu10k1/emu10k1_main.c
··· 531 531 snd_emu10k1_ecard_write(emu, emu->ecard_ctrl); 532 532 } 533 533 534 - static int __devinit snd_emu10k1_ecard_init(struct snd_emu10k1 * emu) 534 + static int snd_emu10k1_ecard_init(struct snd_emu10k1 * emu) 535 535 { 536 536 unsigned int hc_value; 537 537 ··· 571 571 return 0; 572 572 } 573 573 574 - static int __devinit snd_emu10k1_cardbus_init(struct snd_emu10k1 * emu) 574 + static int snd_emu10k1_cardbus_init(struct snd_emu10k1 * emu) 575 575 { 576 576 unsigned long special_port; 577 577 unsigned int value; ··· 633 633 return 0; 634 634 } 635 635 636 - static int __devinit snd_emu10k1_emu1212m_init(struct snd_emu10k1 * emu) 636 + static int snd_emu10k1_emu1212m_init(struct snd_emu10k1 * emu) 637 637 { 638 638 unsigned int i; 639 639 int tmp; ··· 1430 1430 { 1431 1431 if (emu->card_capabilities->ecard) 1432 1432 snd_emu10k1_ecard_init(emu); 1433 + else if (emu->card_capabilities->ca_cardbus_chip) 1434 + snd_emu10k1_cardbus_init(emu); 1435 + else if (emu->card_capabilities->emu1212m) 1436 + snd_emu10k1_emu1212m_init(emu); 1433 1437 else 1434 1438 snd_emu10k1_ptr_write(emu, AC97SLOT, 0, AC97SLOT_CNTR|AC97SLOT_LFE); 1435 1439 snd_emu10k1_init(emu, emu->enable_ir, 1);
+1 -1
sound/pci/emu10k1/emu10k1x.c
··· 1609 1609 } 1610 1610 1611 1611 // PCI IDs 1612 - static struct pci_device_id snd_emu10k1x_ids[] __devinitdata = { 1612 + static struct pci_device_id snd_emu10k1x_ids[] = { 1613 1613 { 0x1102, 0x0006, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0 }, /* Dell OEM version (EMU10K1) */ 1614 1614 { 0, } 1615 1615 };
+1 -1
sound/pci/ens1370.c
··· 446 446 447 447 static irqreturn_t snd_audiopci_interrupt(int irq, void *dev_id, struct pt_regs *regs); 448 448 449 - static struct pci_device_id snd_audiopci_ids[] __devinitdata = { 449 + static struct pci_device_id snd_audiopci_ids[] = { 450 450 #ifdef CHIP1370 451 451 { 0x1274, 0x5000, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0, }, /* ES1370 */ 452 452 #endif
+1 -1
sound/pci/es1938.c
··· 242 242 243 243 static irqreturn_t snd_es1938_interrupt(int irq, void *dev_id, struct pt_regs *regs); 244 244 245 - static struct pci_device_id snd_es1938_ids[] __devinitdata = { 245 + static struct pci_device_id snd_es1938_ids[] = { 246 246 { 0x125d, 0x1969, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0, }, /* Solo-1 */ 247 247 { 0, } 248 248 };
+1 -1
sound/pci/es1968.c
··· 592 592 593 593 static irqreturn_t snd_es1968_interrupt(int irq, void *dev_id, struct pt_regs *regs); 594 594 595 - static struct pci_device_id snd_es1968_ids[] __devinitdata = { 595 + static struct pci_device_id snd_es1968_ids[] = { 596 596 /* Maestro 1 */ 597 597 { 0x1285, 0x0100, PCI_ANY_ID, PCI_ANY_ID, PCI_CLASS_MULTIMEDIA_AUDIO << 8, 0xffff00, TYPE_MAESTRO }, 598 598 /* Maestro 2 */
+1 -1
sound/pci/fm801.c
··· 199 199 #endif 200 200 }; 201 201 202 - static struct pci_device_id snd_fm801_ids[] __devinitdata = { 202 + static struct pci_device_id snd_fm801_ids[] = { 203 203 { 0x1319, 0x0801, PCI_ANY_ID, PCI_ANY_ID, PCI_CLASS_MULTIMEDIA_AUDIO << 8, 0xffff00, 0, }, /* FM801 */ 204 204 { 0x5213, 0x0510, PCI_ANY_ID, PCI_ANY_ID, PCI_CLASS_MULTIMEDIA_AUDIO << 8, 0xffff00, 0, }, /* Gallant Odyssey Sound 4 */ 205 205 { 0, }
+1 -1
sound/pci/hda/hda_intel.c
··· 1629 1629 } 1630 1630 1631 1631 /* PCI IDs */ 1632 - static struct pci_device_id azx_ids[] __devinitdata = { 1632 + static struct pci_device_id azx_ids[] = { 1633 1633 { 0x8086, 0x2668, PCI_ANY_ID, PCI_ANY_ID, 0, 0, AZX_DRIVER_ICH }, /* ICH6 */ 1634 1634 { 0x8086, 0x27d8, PCI_ANY_ID, PCI_ANY_ID, 0, 0, AZX_DRIVER_ICH }, /* ICH7 */ 1635 1635 { 0x8086, 0x269a, PCI_ANY_ID, PCI_ANY_ID, 0, 0, AZX_DRIVER_ICH }, /* ESB2 */
+1 -1
sound/pci/ice1712/ice1712.c
··· 106 106 MODULE_PARM_DESC(dxr_enable, "Enable DXR support for Terratec DMX6FIRE."); 107 107 108 108 109 - static struct pci_device_id snd_ice1712_ids[] __devinitdata = { 109 + static struct pci_device_id snd_ice1712_ids[] = { 110 110 { PCI_VENDOR_ID_ICE, PCI_DEVICE_ID_ICE_1712, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0 }, /* ICE1712 */ 111 111 { 0, } 112 112 };
+1 -1
sound/pci/ice1712/ice1724.c
··· 86 86 87 87 88 88 /* Both VT1720 and VT1724 have the same PCI IDs */ 89 - static struct pci_device_id snd_vt1724_ids[] __devinitdata = { 89 + static struct pci_device_id snd_vt1724_ids[] = { 90 90 { PCI_VENDOR_ID_ICE, PCI_DEVICE_ID_VT1724, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0 }, 91 91 { 0, } 92 92 };
+1 -1
sound/pci/intel8x0.c
··· 413 413 u32 int_sta_mask; /* interrupt status mask */ 414 414 }; 415 415 416 - static struct pci_device_id snd_intel8x0_ids[] __devinitdata = { 416 + static struct pci_device_id snd_intel8x0_ids[] = { 417 417 { 0x8086, 0x2415, PCI_ANY_ID, PCI_ANY_ID, 0, 0, DEVICE_INTEL }, /* 82801AA */ 418 418 { 0x8086, 0x2425, PCI_ANY_ID, PCI_ANY_ID, 0, 0, DEVICE_INTEL }, /* 82901AB */ 419 419 { 0x8086, 0x2445, PCI_ANY_ID, PCI_ANY_ID, 0, 0, DEVICE_INTEL }, /* 82801BA */
+1 -1
sound/pci/intel8x0m.c
··· 224 224 unsigned int pcm_pos_shift; 225 225 }; 226 226 227 - static struct pci_device_id snd_intel8x0m_ids[] __devinitdata = { 227 + static struct pci_device_id snd_intel8x0m_ids[] = { 228 228 { 0x8086, 0x2416, PCI_ANY_ID, PCI_ANY_ID, 0, 0, DEVICE_INTEL }, /* 82801AA */ 229 229 { 0x8086, 0x2426, PCI_ANY_ID, PCI_ANY_ID, 0, 0, DEVICE_INTEL }, /* 82901AB */ 230 230 { 0x8086, 0x2446, PCI_ANY_ID, PCI_ANY_ID, 0, 0, DEVICE_INTEL }, /* 82801BA */
+1 -1
sound/pci/korg1212/korg1212.c
··· 424 424 MODULE_PARM_DESC(enable, "Enable Korg 1212 soundcard."); 425 425 MODULE_AUTHOR("Haroldo Gamal <gamal@alternex.com.br>"); 426 426 427 - static struct pci_device_id snd_korg1212_ids[] __devinitdata = { 427 + static struct pci_device_id snd_korg1212_ids[] = { 428 428 { 429 429 .vendor = 0x10b5, 430 430 .device = 0x906d,
+5 -5
sound/pci/maestro3.c
··· 869 869 /* 870 870 * pci ids 871 871 */ 872 - static struct pci_device_id snd_m3_ids[] __devinitdata = { 872 + static struct pci_device_id snd_m3_ids[] = { 873 873 {PCI_VENDOR_ID_ESS, PCI_DEVICE_ID_ESS_ALLEGRO_1, PCI_ANY_ID, PCI_ANY_ID, 874 874 PCI_CLASS_MULTIMEDIA_AUDIO << 8, 0xffff00, 0}, 875 875 {PCI_VENDOR_ID_ESS, PCI_DEVICE_ID_ESS_ALLEGRO, PCI_ANY_ID, PCI_ANY_ID, ··· 2137 2137 * DSP Code images 2138 2138 */ 2139 2139 2140 - static const u16 assp_kernel_image[] __devinitdata = { 2140 + static const u16 assp_kernel_image[] = { 2141 2141 0x7980, 0x0030, 0x7980, 0x03B4, 0x7980, 0x03B4, 0x7980, 0x00FB, 0x7980, 0x00DD, 0x7980, 0x03B4, 2142 2142 0x7980, 0x0332, 0x7980, 0x0287, 0x7980, 0x03B4, 0x7980, 0x03B4, 0x7980, 0x03B4, 0x7980, 0x03B4, 2143 2143 0x7980, 0x031A, 0x7980, 0x03B4, 0x7980, 0x022F, 0x7980, 0x03B4, 0x7980, 0x03B4, 0x7980, 0x03B4, ··· 2224 2224 * Mini sample rate converter code image 2225 2225 * that is to be loaded at 0x400 on the DSP. 2226 2226 */ 2227 - static const u16 assp_minisrc_image[] __devinitdata = { 2227 + static const u16 assp_minisrc_image[] = { 2228 2228 2229 2229 0xBF80, 0x101E, 0x906E, 0x006E, 0x8B88, 0x6980, 0xEF88, 0x906F, 0x0D6F, 0x6900, 0xEB08, 0x0412, 2230 2230 0xBC20, 0x696E, 0xB801, 0x906E, 0x7980, 0x0403, 0xB90E, 0x8807, 0xBE43, 0xBF01, 0xBE47, 0xBE41, ··· 2267 2267 */ 2268 2268 2269 2269 #define MINISRC_LPF_LEN 10 2270 - static const u16 minisrc_lpf[MINISRC_LPF_LEN] __devinitdata = { 2270 + static const u16 minisrc_lpf[MINISRC_LPF_LEN] = { 2271 2271 0X0743, 0X1104, 0X0A4C, 0XF88D, 0X242C, 2272 2272 0X1023, 0X1AA9, 0X0B60, 0XEFDD, 0X186F 2273 2273 }; 2274 2274 2275 - static void __devinit snd_m3_assp_init(struct snd_m3 *chip) 2275 + static void snd_m3_assp_init(struct snd_m3 *chip) 2276 2276 { 2277 2277 unsigned int i; 2278 2278
+1 -1
sound/pci/mixart/mixart.c
··· 61 61 /* 62 62 */ 63 63 64 - static struct pci_device_id snd_mixart_ids[] __devinitdata = { 64 + static struct pci_device_id snd_mixart_ids[] = { 65 65 { 0x1057, 0x0003, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0, }, /* MC8240 */ 66 66 { 0, } 67 67 };
+1 -1
sound/pci/nm256/nm256.c
··· 263 263 /* 264 264 * PCI ids 265 265 */ 266 - static struct pci_device_id snd_nm256_ids[] __devinitdata = { 266 + static struct pci_device_id snd_nm256_ids[] = { 267 267 {PCI_VENDOR_ID_NEOMAGIC, PCI_DEVICE_ID_NEOMAGIC_NM256AV_AUDIO, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0}, 268 268 {PCI_VENDOR_ID_NEOMAGIC, PCI_DEVICE_ID_NEOMAGIC_NM256ZX_AUDIO, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0}, 269 269 {PCI_VENDOR_ID_NEOMAGIC, PCI_DEVICE_ID_NEOMAGIC_NM256XL_PLUS_AUDIO, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0},
+1 -1
sound/pci/pcxhr/pcxhr.c
··· 73 73 PCI_ID_LAST 74 74 }; 75 75 76 - static struct pci_device_id pcxhr_ids[] __devinitdata = { 76 + static struct pci_device_id pcxhr_ids[] = { 77 77 { 0x10b5, 0x9656, 0x1369, 0xb001, 0, 0, PCI_ID_VX882HR, }, /* VX882HR */ 78 78 { 0x10b5, 0x9656, 0x1369, 0xb101, 0, 0, PCI_ID_PCX882HR, }, /* PCX882HR */ 79 79 { 0x10b5, 0x9656, 0x1369, 0xb201, 0, 0, PCI_ID_VX881HR, }, /* VX881HR */
+1 -1
sound/pci/riptide/riptide.c
··· 506 506 /* 507 507 */ 508 508 509 - static struct pci_device_id snd_riptide_ids[] __devinitdata = { 509 + static struct pci_device_id snd_riptide_ids[] = { 510 510 { 511 511 .vendor = 0x127a,.device = 0x4310, 512 512 .subvendor = PCI_ANY_ID,.subdevice = PCI_ANY_ID,
+1 -1
sound/pci/rme32.c
··· 227 227 struct snd_kcontrol *spdif_ctl; 228 228 }; 229 229 230 - static struct pci_device_id snd_rme32_ids[] __devinitdata = { 230 + static struct pci_device_id snd_rme32_ids[] = { 231 231 {PCI_VENDOR_ID_XILINX_RME, PCI_DEVICE_ID_RME_DIGI32, 232 232 PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0,}, 233 233 {PCI_VENDOR_ID_XILINX_RME, PCI_DEVICE_ID_RME_DIGI32_8,
+1 -1
sound/pci/rme96.c
··· 232 232 struct snd_kcontrol *spdif_ctl; 233 233 }; 234 234 235 - static struct pci_device_id snd_rme96_ids[] __devinitdata = { 235 + static struct pci_device_id snd_rme96_ids[] = { 236 236 { PCI_VENDOR_ID_XILINX, PCI_DEVICE_ID_RME_DIGI96, 237 237 PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0, }, 238 238 { PCI_VENDOR_ID_XILINX, PCI_DEVICE_ID_RME_DIGI96_8,
+2 -2
sound/pci/rme9652/hdsp.c
··· 568 568 } 569 569 570 570 571 - static struct pci_device_id snd_hdsp_ids[] __devinitdata = { 571 + static struct pci_device_id snd_hdsp_ids[] = { 572 572 { 573 573 .vendor = PCI_VENDOR_ID_XILINX, 574 574 .device = PCI_DEVICE_ID_XILINX_HAMMERFALL_DSP, ··· 1356 1356 .trigger = snd_hdsp_midi_input_trigger, 1357 1357 }; 1358 1358 1359 - static int __devinit snd_hdsp_create_midi (struct snd_card *card, struct hdsp *hdsp, int id) 1359 + static int snd_hdsp_create_midi (struct snd_card *card, struct hdsp *hdsp, int id) 1360 1360 { 1361 1361 char buf[32]; 1362 1362
+1 -1
sound/pci/rme9652/rme9652.c
··· 315 315 } 316 316 317 317 318 - static struct pci_device_id snd_rme9652_ids[] __devinitdata = { 318 + static struct pci_device_id snd_rme9652_ids[] = { 319 319 { 320 320 .vendor = 0x10ee, 321 321 .device = 0x3fc4,
+1 -1
sound/pci/sonicvibes.c
··· 243 243 #endif 244 244 }; 245 245 246 - static struct pci_device_id snd_sonic_ids[] __devinitdata = { 246 + static struct pci_device_id snd_sonic_ids[] = { 247 247 { 0x5333, 0xca00, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0, }, 248 248 { 0, } 249 249 };
+1 -1
sound/pci/trident/trident.c
··· 63 63 module_param_array(wavetable_size, int, NULL, 0444); 64 64 MODULE_PARM_DESC(wavetable_size, "Maximum memory size in kB for wavetable synth."); 65 65 66 - static struct pci_device_id snd_trident_ids[] __devinitdata = { 66 + static struct pci_device_id snd_trident_ids[] = { 67 67 {PCI_DEVICE(PCI_VENDOR_ID_TRIDENT, PCI_DEVICE_ID_TRIDENT_4DWAVE_DX), 68 68 PCI_CLASS_MULTIMEDIA_AUDIO << 8, 0xffff00, 0}, 69 69 {PCI_DEVICE(PCI_VENDOR_ID_TRIDENT, PCI_DEVICE_ID_TRIDENT_4DWAVE_NX),
+1 -1
sound/pci/via82xx.c
··· 396 396 #endif 397 397 }; 398 398 399 - static struct pci_device_id snd_via82xx_ids[] __devinitdata = { 399 + static struct pci_device_id snd_via82xx_ids[] = { 400 400 /* 0x1106, 0x3058 */ 401 401 { PCI_VENDOR_ID_VIA, PCI_DEVICE_ID_VIA_82C686_5, PCI_ANY_ID, PCI_ANY_ID, 0, 0, TYPE_CARD_VIA686, }, /* 686A */ 402 402 /* 0x1106, 0x3059 */
+1 -1
sound/pci/via82xx_modem.c
··· 261 261 struct snd_info_entry *proc_entry; 262 262 }; 263 263 264 - static struct pci_device_id snd_via82xx_modem_ids[] __devinitdata = { 264 + static struct pci_device_id snd_via82xx_modem_ids[] = { 265 265 { 0x1106, 0x3068, PCI_ANY_ID, PCI_ANY_ID, 0, 0, TYPE_CARD_VIA82XX_MODEM, }, 266 266 { 0, } 267 267 };
+1 -1
sound/pci/vx222/vx222.c
··· 60 60 VX_PCI_VX222_NEW 61 61 }; 62 62 63 - static struct pci_device_id snd_vx222_ids[] __devinitdata = { 63 + static struct pci_device_id snd_vx222_ids[] = { 64 64 { 0x10b5, 0x9050, 0x1369, PCI_ANY_ID, 0, 0, VX_PCI_VX222_OLD, }, /* PLX */ 65 65 { 0x10b5, 0x9030, 0x1369, PCI_ANY_ID, 0, 0, VX_PCI_VX222_NEW, }, /* PLX */ 66 66 { 0, }
+1 -1
sound/pci/ymfpci/ymfpci.c
··· 70 70 module_param_array(rear_swap, bool, NULL, 0444); 71 71 MODULE_PARM_DESC(rear_swap, "Swap rear channels (must be enabled for correct IEC958 (S/PDIF)) output"); 72 72 73 - static struct pci_device_id snd_ymfpci_ids[] __devinitdata = { 73 + static struct pci_device_id snd_ymfpci_ids[] = { 74 74 { 0x1073, 0x0004, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0, }, /* YMF724 */ 75 75 { 0x1073, 0x000d, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0, }, /* YMF724F */ 76 76 { 0x1073, 0x000a, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0, }, /* YMF740 */