aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci/emu10k1
diff options
context:
space:
mode:
authorBill Pemberton <wfp5p@virginia.edu>2012-12-06 12:35:10 -0500
committerTakashi Iwai <tiwai@suse.de>2012-12-07 01:20:55 -0500
commite23e7a1436207217000c2854214bc908936af3cb (patch)
treeaebb83a4e59dde76a79ac60b51b67849c75c545b /sound/pci/emu10k1
parent445a51b353c35fe54840c10352ef51152fbb94df (diff)
ALSA: pci: remove __dev* attributes
CONFIG_HOTPLUG is going away as an option. As result the __dev* markings will be going away. Remove use of __devinit, __devexit_p, __devinitdata, __devinitconst, and __devexit. Signed-off-by: Bill Pemberton <wfp5p@virginia.edu> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/emu10k1')
-rw-r--r--sound/pci/emu10k1/emu10k1.c8
-rw-r--r--sound/pci/emu10k1/emu10k1_main.c4
-rw-r--r--sound/pci/emu10k1/emu10k1x.c29
-rw-r--r--sound/pci/emu10k1/emufx.c25
-rw-r--r--sound/pci/emu10k1/emumixer.c22
-rw-r--r--sound/pci/emu10k1/emumpu401.c6
-rw-r--r--sound/pci/emu10k1/emupcm.c11
-rw-r--r--sound/pci/emu10k1/emuproc.c2
-rw-r--r--sound/pci/emu10k1/p16v.c8
-rw-r--r--sound/pci/emu10k1/timer.c2
10 files changed, 61 insertions, 56 deletions
diff --git a/sound/pci/emu10k1/emu10k1.c b/sound/pci/emu10k1/emu10k1.c
index a168138efc5e..8c5010f7889c 100644
--- a/sound/pci/emu10k1/emu10k1.c
+++ b/sound/pci/emu10k1/emu10k1.c
@@ -99,8 +99,8 @@ static DEFINE_PCI_DEVICE_TABLE(snd_emu10k1_ids) = {
99 99
100MODULE_DEVICE_TABLE(pci, snd_emu10k1_ids); 100MODULE_DEVICE_TABLE(pci, snd_emu10k1_ids);
101 101
102static int __devinit snd_card_emu10k1_probe(struct pci_dev *pci, 102static int snd_card_emu10k1_probe(struct pci_dev *pci,
103 const struct pci_device_id *pci_id) 103 const struct pci_device_id *pci_id)
104{ 104{
105 static int dev; 105 static int dev;
106 struct snd_card *card; 106 struct snd_card *card;
@@ -199,7 +199,7 @@ static int __devinit snd_card_emu10k1_probe(struct pci_dev *pci,
199 return err; 199 return err;
200} 200}
201 201
202static void __devexit snd_card_emu10k1_remove(struct pci_dev *pci) 202static void snd_card_emu10k1_remove(struct pci_dev *pci)
203{ 203{
204 snd_card_free(pci_get_drvdata(pci)); 204 snd_card_free(pci_get_drvdata(pci));
205 pci_set_drvdata(pci, NULL); 205 pci_set_drvdata(pci, NULL);
@@ -278,7 +278,7 @@ static struct pci_driver emu10k1_driver = {
278 .name = KBUILD_MODNAME, 278 .name = KBUILD_MODNAME,
279 .id_table = snd_emu10k1_ids, 279 .id_table = snd_emu10k1_ids,
280 .probe = snd_card_emu10k1_probe, 280 .probe = snd_card_emu10k1_probe,
281 .remove = __devexit_p(snd_card_emu10k1_remove), 281 .remove = snd_card_emu10k1_remove,
282 .driver = { 282 .driver = {
283 .pm = SND_EMU10K1_PM_OPS, 283 .pm = SND_EMU10K1_PM_OPS,
284 }, 284 },
diff --git a/sound/pci/emu10k1/emu10k1_main.c b/sound/pci/emu10k1/emu10k1_main.c
index 527ef216d4ca..a7c296a36a17 100644
--- a/sound/pci/emu10k1/emu10k1_main.c
+++ b/sound/pci/emu10k1/emu10k1_main.c
@@ -1726,7 +1726,7 @@ static struct snd_emu_chip_details emu_chip_details[] = {
1726 { } /* terminator */ 1726 { } /* terminator */
1727}; 1727};
1728 1728
1729int __devinit snd_emu10k1_create(struct snd_card *card, 1729int snd_emu10k1_create(struct snd_card *card,
1730 struct pci_dev *pci, 1730 struct pci_dev *pci,
1731 unsigned short extin_mask, 1731 unsigned short extin_mask,
1732 unsigned short extout_mask, 1732 unsigned short extout_mask,
@@ -2013,7 +2013,7 @@ static unsigned char saved_regs_audigy[] = {
2013 0xff /* end */ 2013 0xff /* end */
2014}; 2014};
2015 2015
2016static int __devinit alloc_pm_buffer(struct snd_emu10k1 *emu) 2016static int alloc_pm_buffer(struct snd_emu10k1 *emu)
2017{ 2017{
2018 int size; 2018 int size;
2019 2019
diff --git a/sound/pci/emu10k1/emu10k1x.c b/sound/pci/emu10k1/emu10k1x.c
index 556fd6f456e3..cdff11d48ebd 100644
--- a/sound/pci/emu10k1/emu10k1x.c
+++ b/sound/pci/emu10k1/emu10k1x.c
@@ -842,7 +842,7 @@ static const struct snd_pcm_chmap_elem clfe_map[] = {
842 { } 842 { }
843}; 843};
844 844
845static int __devinit snd_emu10k1x_pcm(struct emu10k1x *emu, int device, struct snd_pcm **rpcm) 845static int snd_emu10k1x_pcm(struct emu10k1x *emu, int device, struct snd_pcm **rpcm)
846{ 846{
847 struct snd_pcm *pcm; 847 struct snd_pcm *pcm;
848 const struct snd_pcm_chmap_elem *map = NULL; 848 const struct snd_pcm_chmap_elem *map = NULL;
@@ -902,9 +902,9 @@ static int __devinit snd_emu10k1x_pcm(struct emu10k1x *emu, int device, struct s
902 return 0; 902 return 0;
903} 903}
904 904
905static int __devinit snd_emu10k1x_create(struct snd_card *card, 905static int snd_emu10k1x_create(struct snd_card *card,
906 struct pci_dev *pci, 906 struct pci_dev *pci,
907 struct emu10k1x **rchip) 907 struct emu10k1x **rchip)
908{ 908{
909 struct emu10k1x *chip; 909 struct emu10k1x *chip;
910 int err; 910 int err;
@@ -1066,7 +1066,7 @@ static void snd_emu10k1x_proc_reg_write(struct snd_info_entry *entry,
1066 } 1066 }
1067} 1067}
1068 1068
1069static int __devinit snd_emu10k1x_proc_init(struct emu10k1x * emu) 1069static int snd_emu10k1x_proc_init(struct emu10k1x *emu)
1070{ 1070{
1071 struct snd_info_entry *entry; 1071 struct snd_info_entry *entry;
1072 1072
@@ -1115,7 +1115,7 @@ static int snd_emu10k1x_shared_spdif_put(struct snd_kcontrol *kcontrol,
1115 return change; 1115 return change;
1116} 1116}
1117 1117
1118static struct snd_kcontrol_new snd_emu10k1x_shared_spdif __devinitdata = 1118static struct snd_kcontrol_new snd_emu10k1x_shared_spdif =
1119{ 1119{
1120 .iface = SNDRV_CTL_ELEM_IFACE_MIXER, 1120 .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
1121 .name = "Analog/Digital Output Jack", 1121 .name = "Analog/Digital Output Jack",
@@ -1194,7 +1194,7 @@ static struct snd_kcontrol_new snd_emu10k1x_spdif_control =
1194 .put = snd_emu10k1x_spdif_put 1194 .put = snd_emu10k1x_spdif_put
1195}; 1195};
1196 1196
1197static int __devinit snd_emu10k1x_mixer(struct emu10k1x *emu) 1197static int snd_emu10k1x_mixer(struct emu10k1x *emu)
1198{ 1198{
1199 int err; 1199 int err;
1200 struct snd_kcontrol *kctl; 1200 struct snd_kcontrol *kctl;
@@ -1507,8 +1507,9 @@ static void snd_emu10k1x_midi_free(struct snd_rawmidi *rmidi)
1507 midi->rmidi = NULL; 1507 midi->rmidi = NULL;
1508} 1508}
1509 1509
1510static int __devinit emu10k1x_midi_init(struct emu10k1x *emu, 1510static int emu10k1x_midi_init(struct emu10k1x *emu,
1511 struct emu10k1x_midi *midi, int device, char *name) 1511 struct emu10k1x_midi *midi, int device,
1512 char *name)
1512{ 1513{
1513 struct snd_rawmidi *rmidi; 1514 struct snd_rawmidi *rmidi;
1514 int err; 1515 int err;
@@ -1531,7 +1532,7 @@ static int __devinit emu10k1x_midi_init(struct emu10k1x *emu,
1531 return 0; 1532 return 0;
1532} 1533}
1533 1534
1534static int __devinit snd_emu10k1x_midi(struct emu10k1x *emu) 1535static int snd_emu10k1x_midi(struct emu10k1x *emu)
1535{ 1536{
1536 struct emu10k1x_midi *midi = &emu->midi; 1537 struct emu10k1x_midi *midi = &emu->midi;
1537 int err; 1538 int err;
@@ -1548,8 +1549,8 @@ static int __devinit snd_emu10k1x_midi(struct emu10k1x *emu)
1548 return 0; 1549 return 0;
1549} 1550}
1550 1551
1551static int __devinit snd_emu10k1x_probe(struct pci_dev *pci, 1552static int snd_emu10k1x_probe(struct pci_dev *pci,
1552 const struct pci_device_id *pci_id) 1553 const struct pci_device_id *pci_id)
1553{ 1554{
1554 static int dev; 1555 static int dev;
1555 struct snd_card *card; 1556 struct snd_card *card;
@@ -1619,7 +1620,7 @@ static int __devinit snd_emu10k1x_probe(struct pci_dev *pci,
1619 return 0; 1620 return 0;
1620} 1621}
1621 1622
1622static void __devexit snd_emu10k1x_remove(struct pci_dev *pci) 1623static void snd_emu10k1x_remove(struct pci_dev *pci)
1623{ 1624{
1624 snd_card_free(pci_get_drvdata(pci)); 1625 snd_card_free(pci_get_drvdata(pci));
1625 pci_set_drvdata(pci, NULL); 1626 pci_set_drvdata(pci, NULL);
@@ -1637,7 +1638,7 @@ static struct pci_driver emu10k1x_driver = {
1637 .name = KBUILD_MODNAME, 1638 .name = KBUILD_MODNAME,
1638 .id_table = snd_emu10k1x_ids, 1639 .id_table = snd_emu10k1x_ids,
1639 .probe = snd_emu10k1x_probe, 1640 .probe = snd_emu10k1x_probe,
1640 .remove = __devexit_p(snd_emu10k1x_remove), 1641 .remove = snd_emu10k1x_remove,
1641}; 1642};
1642 1643
1643module_pci_driver(emu10k1x_driver); 1644module_pci_driver(emu10k1x_driver);
diff --git a/sound/pci/emu10k1/emufx.c b/sound/pci/emu10k1/emufx.c
index 52419959178c..0275209ca82e 100644
--- a/sound/pci/emu10k1/emufx.c
+++ b/sound/pci/emu10k1/emufx.c
@@ -1073,7 +1073,7 @@ static int snd_emu10k1_ipcm_peek(struct snd_emu10k1 *emu,
1073#define SND_EMU10K1_PLAYBACK_CHANNELS 8 1073#define SND_EMU10K1_PLAYBACK_CHANNELS 8
1074#define SND_EMU10K1_CAPTURE_CHANNELS 4 1074#define SND_EMU10K1_CAPTURE_CHANNELS 4
1075 1075
1076static void __devinit 1076static void
1077snd_emu10k1_init_mono_control(struct snd_emu10k1_fx8010_control_gpr *ctl, 1077snd_emu10k1_init_mono_control(struct snd_emu10k1_fx8010_control_gpr *ctl,
1078 const char *name, int gpr, int defval) 1078 const char *name, int gpr, int defval)
1079{ 1079{
@@ -1094,7 +1094,7 @@ snd_emu10k1_init_mono_control(struct snd_emu10k1_fx8010_control_gpr *ctl,
1094 } 1094 }
1095} 1095}
1096 1096
1097static void __devinit 1097static void
1098snd_emu10k1_init_stereo_control(struct snd_emu10k1_fx8010_control_gpr *ctl, 1098snd_emu10k1_init_stereo_control(struct snd_emu10k1_fx8010_control_gpr *ctl,
1099 const char *name, int gpr, int defval) 1099 const char *name, int gpr, int defval)
1100{ 1100{
@@ -1116,7 +1116,7 @@ snd_emu10k1_init_stereo_control(struct snd_emu10k1_fx8010_control_gpr *ctl,
1116 } 1116 }
1117} 1117}
1118 1118
1119static void __devinit 1119static void
1120snd_emu10k1_init_mono_onoff_control(struct snd_emu10k1_fx8010_control_gpr *ctl, 1120snd_emu10k1_init_mono_onoff_control(struct snd_emu10k1_fx8010_control_gpr *ctl,
1121 const char *name, int gpr, int defval) 1121 const char *name, int gpr, int defval)
1122{ 1122{
@@ -1129,7 +1129,7 @@ snd_emu10k1_init_mono_onoff_control(struct snd_emu10k1_fx8010_control_gpr *ctl,
1129 ctl->translation = EMU10K1_GPR_TRANSLATION_ONOFF; 1129 ctl->translation = EMU10K1_GPR_TRANSLATION_ONOFF;
1130} 1130}
1131 1131
1132static void __devinit 1132static void
1133snd_emu10k1_init_stereo_onoff_control(struct snd_emu10k1_fx8010_control_gpr *ctl, 1133snd_emu10k1_init_stereo_onoff_control(struct snd_emu10k1_fx8010_control_gpr *ctl,
1134 const char *name, int gpr, int defval) 1134 const char *name, int gpr, int defval)
1135{ 1135{
@@ -1168,7 +1168,7 @@ static int snd_emu10k1_audigy_dsp_convert_32_to_2x16(
1168 * initial DSP configuration for Audigy 1168 * initial DSP configuration for Audigy
1169 */ 1169 */
1170 1170
1171static int __devinit _snd_emu10k1_audigy_init_efx(struct snd_emu10k1 *emu) 1171static int _snd_emu10k1_audigy_init_efx(struct snd_emu10k1 *emu)
1172{ 1172{
1173 int err, i, z, gpr, nctl; 1173 int err, i, z, gpr, nctl;
1174 int bit_shifter16; 1174 int bit_shifter16;
@@ -1757,14 +1757,14 @@ A_OP(icode, &ptr, iMAC0, A_GPR(var), A_GPR(var), A_GPR(vol), A_EXTIN(input))
1757 1757
1758/* when volume = max, then copy only to avoid volume modification */ 1758/* when volume = max, then copy only to avoid volume modification */
1759/* with iMAC0 (negative values) */ 1759/* with iMAC0 (negative values) */
1760static void __devinit _volume(struct snd_emu10k1_fx8010_code *icode, u32 *ptr, u32 dst, u32 src, u32 vol) 1760static void _volume(struct snd_emu10k1_fx8010_code *icode, u32 *ptr, u32 dst, u32 src, u32 vol)
1761{ 1761{
1762 OP(icode, ptr, iMAC0, dst, C_00000000, src, vol); 1762 OP(icode, ptr, iMAC0, dst, C_00000000, src, vol);
1763 OP(icode, ptr, iANDXOR, C_00000000, vol, C_ffffffff, C_7fffffff); 1763 OP(icode, ptr, iANDXOR, C_00000000, vol, C_ffffffff, C_7fffffff);
1764 OP(icode, ptr, iSKIP, GPR_COND, GPR_COND, CC_REG_NONZERO, C_00000001); 1764 OP(icode, ptr, iSKIP, GPR_COND, GPR_COND, CC_REG_NONZERO, C_00000001);
1765 OP(icode, ptr, iACC3, dst, src, C_00000000, C_00000000); 1765 OP(icode, ptr, iACC3, dst, src, C_00000000, C_00000000);
1766} 1766}
1767static void __devinit _volume_add(struct snd_emu10k1_fx8010_code *icode, u32 *ptr, u32 dst, u32 src, u32 vol) 1767static void _volume_add(struct snd_emu10k1_fx8010_code *icode, u32 *ptr, u32 dst, u32 src, u32 vol)
1768{ 1768{
1769 OP(icode, ptr, iANDXOR, C_00000000, vol, C_ffffffff, C_7fffffff); 1769 OP(icode, ptr, iANDXOR, C_00000000, vol, C_ffffffff, C_7fffffff);
1770 OP(icode, ptr, iSKIP, GPR_COND, GPR_COND, CC_REG_NONZERO, C_00000002); 1770 OP(icode, ptr, iSKIP, GPR_COND, GPR_COND, CC_REG_NONZERO, C_00000002);
@@ -1772,7 +1772,7 @@ static void __devinit _volume_add(struct snd_emu10k1_fx8010_code *icode, u32 *pt
1772 OP(icode, ptr, iSKIP, C_00000000, C_7fffffff, C_7fffffff, C_00000001); 1772 OP(icode, ptr, iSKIP, C_00000000, C_7fffffff, C_7fffffff, C_00000001);
1773 OP(icode, ptr, iMAC0, dst, dst, src, vol); 1773 OP(icode, ptr, iMAC0, dst, dst, src, vol);
1774} 1774}
1775static void __devinit _volume_out(struct snd_emu10k1_fx8010_code *icode, u32 *ptr, u32 dst, u32 src, u32 vol) 1775static void _volume_out(struct snd_emu10k1_fx8010_code *icode, u32 *ptr, u32 dst, u32 src, u32 vol)
1776{ 1776{
1777 OP(icode, ptr, iANDXOR, C_00000000, vol, C_ffffffff, C_7fffffff); 1777 OP(icode, ptr, iANDXOR, C_00000000, vol, C_ffffffff, C_7fffffff);
1778 OP(icode, ptr, iSKIP, GPR_COND, GPR_COND, CC_REG_NONZERO, C_00000002); 1778 OP(icode, ptr, iSKIP, GPR_COND, GPR_COND, CC_REG_NONZERO, C_00000002);
@@ -1803,7 +1803,7 @@ static void __devinit _volume_out(struct snd_emu10k1_fx8010_code *icode, u32 *pt
1803 _SWITCH_NEG(icode, ptr, GPR(dst), GPR(src)) 1803 _SWITCH_NEG(icode, ptr, GPR(dst), GPR(src))
1804 1804
1805 1805
1806static int __devinit _snd_emu10k1_init_efx(struct snd_emu10k1 *emu) 1806static int _snd_emu10k1_init_efx(struct snd_emu10k1 *emu)
1807{ 1807{
1808 int err, i, z, gpr, tmp, playback, capture; 1808 int err, i, z, gpr, tmp, playback, capture;
1809 u32 ptr; 1809 u32 ptr;
@@ -2373,7 +2373,7 @@ static int __devinit _snd_emu10k1_init_efx(struct snd_emu10k1 *emu)
2373 return err; 2373 return err;
2374} 2374}
2375 2375
2376int __devinit snd_emu10k1_init_efx(struct snd_emu10k1 *emu) 2376int snd_emu10k1_init_efx(struct snd_emu10k1 *emu)
2377{ 2377{
2378 spin_lock_init(&emu->fx8010.irq_lock); 2378 spin_lock_init(&emu->fx8010.irq_lock);
2379 INIT_LIST_HEAD(&emu->fx8010.gpr_ctl); 2379 INIT_LIST_HEAD(&emu->fx8010.gpr_ctl);
@@ -2626,7 +2626,8 @@ static int snd_emu10k1_fx8010_release(struct snd_hwdep * hw, struct file *file)
2626 return 0; 2626 return 0;
2627} 2627}
2628 2628
2629int __devinit snd_emu10k1_fx8010_new(struct snd_emu10k1 *emu, int device, struct snd_hwdep ** rhwdep) 2629int snd_emu10k1_fx8010_new(struct snd_emu10k1 *emu, int device,
2630 struct snd_hwdep **rhwdep)
2630{ 2631{
2631 struct snd_hwdep *hw; 2632 struct snd_hwdep *hw;
2632 int err; 2633 int err;
@@ -2647,7 +2648,7 @@ int __devinit snd_emu10k1_fx8010_new(struct snd_emu10k1 *emu, int device, struct
2647} 2648}
2648 2649
2649#ifdef CONFIG_PM_SLEEP 2650#ifdef CONFIG_PM_SLEEP
2650int __devinit snd_emu10k1_efx_alloc_pm_buffer(struct snd_emu10k1 *emu) 2651int snd_emu10k1_efx_alloc_pm_buffer(struct snd_emu10k1 *emu)
2651{ 2652{
2652 int len; 2653 int len;
2653 2654
diff --git a/sound/pci/emu10k1/emumixer.c b/sound/pci/emu10k1/emumixer.c
index 9d890a5aec5a..f6c3da0d377d 100644
--- a/sound/pci/emu10k1/emumixer.c
+++ b/sound/pci/emu10k1/emumixer.c
@@ -510,7 +510,7 @@ static int snd_emu1010_input_source_put(struct snd_kcontrol *kcontrol,
510 .private_value = chid \ 510 .private_value = chid \
511} 511}
512 512
513static struct snd_kcontrol_new snd_emu1010_output_enum_ctls[] __devinitdata = { 513static struct snd_kcontrol_new snd_emu1010_output_enum_ctls[] = {
514 EMU1010_SOURCE_OUTPUT("Dock DAC1 Left Playback Enum", 0), 514 EMU1010_SOURCE_OUTPUT("Dock DAC1 Left Playback Enum", 0),
515 EMU1010_SOURCE_OUTPUT("Dock DAC1 Right Playback Enum", 1), 515 EMU1010_SOURCE_OUTPUT("Dock DAC1 Right Playback Enum", 1),
516 EMU1010_SOURCE_OUTPUT("Dock DAC2 Left Playback Enum", 2), 516 EMU1010_SOURCE_OUTPUT("Dock DAC2 Left Playback Enum", 2),
@@ -539,7 +539,7 @@ static struct snd_kcontrol_new snd_emu1010_output_enum_ctls[] __devinitdata = {
539 539
540 540
541/* 1616(m) cardbus */ 541/* 1616(m) cardbus */
542static struct snd_kcontrol_new snd_emu1616_output_enum_ctls[] __devinitdata = { 542static struct snd_kcontrol_new snd_emu1616_output_enum_ctls[] = {
543 EMU1010_SOURCE_OUTPUT("Dock DAC1 Left Playback Enum", 0), 543 EMU1010_SOURCE_OUTPUT("Dock DAC1 Left Playback Enum", 0),
544 EMU1010_SOURCE_OUTPUT("Dock DAC1 Right Playback Enum", 1), 544 EMU1010_SOURCE_OUTPUT("Dock DAC1 Right Playback Enum", 1),
545 EMU1010_SOURCE_OUTPUT("Dock DAC2 Left Playback Enum", 2), 545 EMU1010_SOURCE_OUTPUT("Dock DAC2 Left Playback Enum", 2),
@@ -571,7 +571,7 @@ static struct snd_kcontrol_new snd_emu1616_output_enum_ctls[] __devinitdata = {
571 .private_value = chid \ 571 .private_value = chid \
572} 572}
573 573
574static struct snd_kcontrol_new snd_emu1010_input_enum_ctls[] __devinitdata = { 574static struct snd_kcontrol_new snd_emu1010_input_enum_ctls[] = {
575 EMU1010_SOURCE_INPUT("DSP 0 Capture Enum", 0), 575 EMU1010_SOURCE_INPUT("DSP 0 Capture Enum", 0),
576 EMU1010_SOURCE_INPUT("DSP 1 Capture Enum", 1), 576 EMU1010_SOURCE_INPUT("DSP 1 Capture Enum", 1),
577 EMU1010_SOURCE_INPUT("DSP 2 Capture Enum", 2), 577 EMU1010_SOURCE_INPUT("DSP 2 Capture Enum", 2),
@@ -639,7 +639,7 @@ static int snd_emu1010_adc_pads_put(struct snd_kcontrol *kcontrol, struct snd_ct
639 .private_value = chid \ 639 .private_value = chid \
640} 640}
641 641
642static struct snd_kcontrol_new snd_emu1010_adc_pads[] __devinitdata = { 642static struct snd_kcontrol_new snd_emu1010_adc_pads[] = {
643 EMU1010_ADC_PADS("ADC1 14dB PAD Audio Dock Capture Switch", EMU_HANA_DOCK_ADC_PAD1), 643 EMU1010_ADC_PADS("ADC1 14dB PAD Audio Dock Capture Switch", EMU_HANA_DOCK_ADC_PAD1),
644 EMU1010_ADC_PADS("ADC2 14dB PAD Audio Dock Capture Switch", EMU_HANA_DOCK_ADC_PAD2), 644 EMU1010_ADC_PADS("ADC2 14dB PAD Audio Dock Capture Switch", EMU_HANA_DOCK_ADC_PAD2),
645 EMU1010_ADC_PADS("ADC3 14dB PAD Audio Dock Capture Switch", EMU_HANA_DOCK_ADC_PAD3), 645 EMU1010_ADC_PADS("ADC3 14dB PAD Audio Dock Capture Switch", EMU_HANA_DOCK_ADC_PAD3),
@@ -687,7 +687,7 @@ static int snd_emu1010_dac_pads_put(struct snd_kcontrol *kcontrol, struct snd_ct
687 .private_value = chid \ 687 .private_value = chid \
688} 688}
689 689
690static struct snd_kcontrol_new snd_emu1010_dac_pads[] __devinitdata = { 690static struct snd_kcontrol_new snd_emu1010_dac_pads[] = {
691 EMU1010_DAC_PADS("DAC1 Audio Dock 14dB PAD Playback Switch", EMU_HANA_DOCK_DAC_PAD1), 691 EMU1010_DAC_PADS("DAC1 Audio Dock 14dB PAD Playback Switch", EMU_HANA_DOCK_DAC_PAD1),
692 EMU1010_DAC_PADS("DAC2 Audio Dock 14dB PAD Playback Switch", EMU_HANA_DOCK_DAC_PAD2), 692 EMU1010_DAC_PADS("DAC2 Audio Dock 14dB PAD Playback Switch", EMU_HANA_DOCK_DAC_PAD2),
693 EMU1010_DAC_PADS("DAC3 Audio Dock 14dB PAD Playback Switch", EMU_HANA_DOCK_DAC_PAD3), 693 EMU1010_DAC_PADS("DAC3 Audio Dock 14dB PAD Playback Switch", EMU_HANA_DOCK_DAC_PAD3),
@@ -989,7 +989,7 @@ static int snd_audigy_i2c_volume_put(struct snd_kcontrol *kcontrol,
989} 989}
990 990
991 991
992static struct snd_kcontrol_new snd_audigy_i2c_volume_ctls[] __devinitdata = { 992static struct snd_kcontrol_new snd_audigy_i2c_volume_ctls[] = {
993 I2C_VOLUME("Mic Capture Volume", 0), 993 I2C_VOLUME("Mic Capture Volume", 0),
994 I2C_VOLUME("Line Capture Volume", 0) 994 I2C_VOLUME("Line Capture Volume", 0)
995}; 995};
@@ -1621,7 +1621,7 @@ static int snd_emu10k1_shared_spdif_put(struct snd_kcontrol *kcontrol,
1621 return change; 1621 return change;
1622} 1622}
1623 1623
1624static struct snd_kcontrol_new snd_emu10k1_shared_spdif __devinitdata = 1624static struct snd_kcontrol_new snd_emu10k1_shared_spdif =
1625{ 1625{
1626 .iface = SNDRV_CTL_ELEM_IFACE_MIXER, 1626 .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
1627 .name = "SB Live Analog/Digital Output Jack", 1627 .name = "SB Live Analog/Digital Output Jack",
@@ -1630,7 +1630,7 @@ static struct snd_kcontrol_new snd_emu10k1_shared_spdif __devinitdata =
1630 .put = snd_emu10k1_shared_spdif_put 1630 .put = snd_emu10k1_shared_spdif_put
1631}; 1631};
1632 1632
1633static struct snd_kcontrol_new snd_audigy_shared_spdif __devinitdata = 1633static struct snd_kcontrol_new snd_audigy_shared_spdif =
1634{ 1634{
1635 .iface = SNDRV_CTL_ELEM_IFACE_MIXER, 1635 .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
1636 .name = "Audigy Analog/Digital Output Jack", 1636 .name = "Audigy Analog/Digital Output Jack",
@@ -1668,7 +1668,7 @@ static int snd_audigy_capture_boost_put(struct snd_kcontrol *kcontrol,
1668 return snd_ac97_update(emu->ac97, AC97_REC_GAIN, val); 1668 return snd_ac97_update(emu->ac97, AC97_REC_GAIN, val);
1669} 1669}
1670 1670
1671static struct snd_kcontrol_new snd_audigy_capture_boost __devinitdata = 1671static struct snd_kcontrol_new snd_audigy_capture_boost =
1672{ 1672{
1673 .iface = SNDRV_CTL_ELEM_IFACE_MIXER, 1673 .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
1674 .name = "Analog Capture Boost", 1674 .name = "Analog Capture Boost",
@@ -1716,8 +1716,8 @@ static int rename_ctl(struct snd_card *card, const char *src, const char *dst)
1716 return -ENOENT; 1716 return -ENOENT;
1717} 1717}
1718 1718
1719int __devinit snd_emu10k1_mixer(struct snd_emu10k1 *emu, 1719int snd_emu10k1_mixer(struct snd_emu10k1 *emu,
1720 int pcm_device, int multi_device) 1720 int pcm_device, int multi_device)
1721{ 1721{
1722 int err, pcm; 1722 int err, pcm;
1723 struct snd_kcontrol *kctl; 1723 struct snd_kcontrol *kctl;
diff --git a/sound/pci/emu10k1/emumpu401.c b/sound/pci/emu10k1/emumpu401.c
index bab564824efe..1ec91246dfee 100644
--- a/sound/pci/emu10k1/emumpu401.c
+++ b/sound/pci/emu10k1/emumpu401.c
@@ -326,7 +326,7 @@ static void snd_emu10k1_midi_free(struct snd_rawmidi *rmidi)
326 midi->rmidi = NULL; 326 midi->rmidi = NULL;
327} 327}
328 328
329static int __devinit emu10k1_midi_init(struct snd_emu10k1 *emu, struct snd_emu10k1_midi *midi, int device, char *name) 329static int emu10k1_midi_init(struct snd_emu10k1 *emu, struct snd_emu10k1_midi *midi, int device, char *name)
330{ 330{
331 struct snd_rawmidi *rmidi; 331 struct snd_rawmidi *rmidi;
332 int err; 332 int err;
@@ -349,7 +349,7 @@ static int __devinit emu10k1_midi_init(struct snd_emu10k1 *emu, struct snd_emu10
349 return 0; 349 return 0;
350} 350}
351 351
352int __devinit snd_emu10k1_midi(struct snd_emu10k1 *emu) 352int snd_emu10k1_midi(struct snd_emu10k1 *emu)
353{ 353{
354 struct snd_emu10k1_midi *midi = &emu->midi; 354 struct snd_emu10k1_midi *midi = &emu->midi;
355 int err; 355 int err;
@@ -366,7 +366,7 @@ int __devinit snd_emu10k1_midi(struct snd_emu10k1 *emu)
366 return 0; 366 return 0;
367} 367}
368 368
369int __devinit snd_emu10k1_audigy_midi(struct snd_emu10k1 *emu) 369int snd_emu10k1_audigy_midi(struct snd_emu10k1 *emu)
370{ 370{
371 struct snd_emu10k1_midi *midi; 371 struct snd_emu10k1_midi *midi;
372 int err; 372 int err;
diff --git a/sound/pci/emu10k1/emupcm.c b/sound/pci/emu10k1/emupcm.c
index 0e6664fa6cd9..748a286277eb 100644
--- a/sound/pci/emu10k1/emupcm.c
+++ b/sound/pci/emu10k1/emupcm.c
@@ -1391,7 +1391,7 @@ static struct snd_pcm_ops snd_emu10k1_efx_playback_ops = {
1391 .page = snd_pcm_sgbuf_ops_page, 1391 .page = snd_pcm_sgbuf_ops_page,
1392}; 1392};
1393 1393
1394int __devinit snd_emu10k1_pcm(struct snd_emu10k1 * emu, int device, struct snd_pcm ** rpcm) 1394int snd_emu10k1_pcm(struct snd_emu10k1 *emu, int device, struct snd_pcm **rpcm)
1395{ 1395{
1396 struct snd_pcm *pcm; 1396 struct snd_pcm *pcm;
1397 struct snd_pcm_substream *substream; 1397 struct snd_pcm_substream *substream;
@@ -1426,7 +1426,8 @@ int __devinit snd_emu10k1_pcm(struct snd_emu10k1 * emu, int device, struct snd_p
1426 return 0; 1426 return 0;
1427} 1427}
1428 1428
1429int __devinit snd_emu10k1_pcm_multi(struct snd_emu10k1 * emu, int device, struct snd_pcm ** rpcm) 1429int snd_emu10k1_pcm_multi(struct snd_emu10k1 *emu, int device,
1430 struct snd_pcm **rpcm)
1430{ 1431{
1431 struct snd_pcm *pcm; 1432 struct snd_pcm *pcm;
1432 struct snd_pcm_substream *substream; 1433 struct snd_pcm_substream *substream;
@@ -1469,7 +1470,8 @@ static struct snd_pcm_ops snd_emu10k1_capture_mic_ops = {
1469 .pointer = snd_emu10k1_capture_pointer, 1470 .pointer = snd_emu10k1_capture_pointer,
1470}; 1471};
1471 1472
1472int __devinit snd_emu10k1_pcm_mic(struct snd_emu10k1 * emu, int device, struct snd_pcm ** rpcm) 1473int snd_emu10k1_pcm_mic(struct snd_emu10k1 *emu, int device,
1474 struct snd_pcm **rpcm)
1473{ 1475{
1474 struct snd_pcm *pcm; 1476 struct snd_pcm *pcm;
1475 int err; 1477 int err;
@@ -1810,7 +1812,8 @@ static struct snd_pcm_ops snd_emu10k1_fx8010_playback_ops = {
1810 .ack = snd_emu10k1_fx8010_playback_transfer, 1812 .ack = snd_emu10k1_fx8010_playback_transfer,
1811}; 1813};
1812 1814
1813int __devinit snd_emu10k1_pcm_efx(struct snd_emu10k1 * emu, int device, struct snd_pcm ** rpcm) 1815int snd_emu10k1_pcm_efx(struct snd_emu10k1 *emu, int device,
1816 struct snd_pcm **rpcm)
1814{ 1817{
1815 struct snd_pcm *pcm; 1818 struct snd_pcm *pcm;
1816 struct snd_kcontrol *kctl; 1819 struct snd_kcontrol *kctl;
diff --git a/sound/pci/emu10k1/emuproc.c b/sound/pci/emu10k1/emuproc.c
index bc38dd4d071f..2ca9f2e93139 100644
--- a/sound/pci/emu10k1/emuproc.c
+++ b/sound/pci/emu10k1/emuproc.c
@@ -577,7 +577,7 @@ static struct snd_info_entry_ops snd_emu10k1_proc_ops_fx8010 = {
577 .read = snd_emu10k1_fx8010_read, 577 .read = snd_emu10k1_fx8010_read,
578}; 578};
579 579
580int __devinit snd_emu10k1_proc_init(struct snd_emu10k1 * emu) 580int snd_emu10k1_proc_init(struct snd_emu10k1 *emu)
581{ 581{
582 struct snd_info_entry *entry; 582 struct snd_info_entry *entry;
583#ifdef CONFIG_SND_DEBUG 583#ifdef CONFIG_SND_DEBUG
diff --git a/sound/pci/emu10k1/p16v.c b/sound/pci/emu10k1/p16v.c
index 88cec6b7dd41..7e2025cd6d9c 100644
--- a/sound/pci/emu10k1/p16v.c
+++ b/sound/pci/emu10k1/p16v.c
@@ -637,7 +637,7 @@ int snd_p16v_free(struct snd_emu10k1 *chip)
637 return 0; 637 return 0;
638} 638}
639 639
640int __devinit snd_p16v_pcm(struct snd_emu10k1 *emu, int device, struct snd_pcm **rpcm) 640int snd_p16v_pcm(struct snd_emu10k1 *emu, int device, struct snd_pcm **rpcm)
641{ 641{
642 struct snd_pcm *pcm; 642 struct snd_pcm *pcm;
643 struct snd_pcm_substream *substream; 643 struct snd_pcm_substream *substream;
@@ -854,7 +854,7 @@ static const DECLARE_TLV_DB_SCALE(snd_p16v_db_scale1, -5175, 25, 1);
854 .private_value = ((xreg) | ((xhl) << 8)) \ 854 .private_value = ((xreg) | ((xhl) << 8)) \
855} 855}
856 856
857static struct snd_kcontrol_new p16v_mixer_controls[] __devinitdata = { 857static struct snd_kcontrol_new p16v_mixer_controls[] = {
858 P16V_VOL("HD Analog Front Playback Volume", PLAYBACK_VOLUME_MIXER9, 0), 858 P16V_VOL("HD Analog Front Playback Volume", PLAYBACK_VOLUME_MIXER9, 0),
859 P16V_VOL("HD Analog Rear Playback Volume", PLAYBACK_VOLUME_MIXER10, 1), 859 P16V_VOL("HD Analog Rear Playback Volume", PLAYBACK_VOLUME_MIXER10, 1),
860 P16V_VOL("HD Analog Center/LFE Playback Volume", PLAYBACK_VOLUME_MIXER9, 1), 860 P16V_VOL("HD Analog Center/LFE Playback Volume", PLAYBACK_VOLUME_MIXER9, 1),
@@ -880,7 +880,7 @@ static struct snd_kcontrol_new p16v_mixer_controls[] __devinitdata = {
880}; 880};
881 881
882 882
883int __devinit snd_p16v_mixer(struct snd_emu10k1 *emu) 883int snd_p16v_mixer(struct snd_emu10k1 *emu)
884{ 884{
885 int i, err; 885 int i, err;
886 struct snd_card *card = emu->card; 886 struct snd_card *card = emu->card;
@@ -897,7 +897,7 @@ int __devinit snd_p16v_mixer(struct snd_emu10k1 *emu)
897 897
898#define NUM_CHS 1 /* up to 4, but only first channel is used */ 898#define NUM_CHS 1 /* up to 4, but only first channel is used */
899 899
900int __devinit snd_p16v_alloc_pm_buffer(struct snd_emu10k1 *emu) 900int snd_p16v_alloc_pm_buffer(struct snd_emu10k1 *emu)
901{ 901{
902 emu->p16v_saved = vmalloc(NUM_CHS * 4 * 0x80); 902 emu->p16v_saved = vmalloc(NUM_CHS * 4 * 0x80);
903 if (! emu->p16v_saved) 903 if (! emu->p16v_saved)
diff --git a/sound/pci/emu10k1/timer.c b/sound/pci/emu10k1/timer.c
index 72321e946ccc..b69a7f8a216c 100644
--- a/sound/pci/emu10k1/timer.c
+++ b/sound/pci/emu10k1/timer.c
@@ -75,7 +75,7 @@ static struct snd_timer_hardware snd_emu10k1_timer_hw = {
75 .precise_resolution = snd_emu10k1_timer_precise_resolution, 75 .precise_resolution = snd_emu10k1_timer_precise_resolution,
76}; 76};
77 77
78int __devinit snd_emu10k1_timer(struct snd_emu10k1 *emu, int device) 78int snd_emu10k1_timer(struct snd_emu10k1 *emu, int device)
79{ 79{
80 struct snd_timer *timer = NULL; 80 struct snd_timer *timer = NULL;
81 struct snd_timer_id tid; 81 struct snd_timer_id tid;