aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci/emu10k1/emu10k1x.c
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/emu10k1x.c
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/emu10k1x.c')
-rw-r--r--sound/pci/emu10k1/emu10k1x.c29
1 files changed, 15 insertions, 14 deletions
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);