aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci/ca0106
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/ca0106
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/ca0106')
-rw-r--r--sound/pci/ca0106/ca0106_main.c12
-rw-r--r--sound/pci/ca0106/ca0106_mixer.c26
-rw-r--r--sound/pci/ca0106/ca0106_proc.c2
-rw-r--r--sound/pci/ca0106/ca_midi.c2
4 files changed, 21 insertions, 21 deletions
diff --git a/sound/pci/ca0106/ca0106_main.c b/sound/pci/ca0106/ca0106_main.c
index 65c55910566b..1610a5705970 100644
--- a/sound/pci/ca0106/ca0106_main.c
+++ b/sound/pci/ca0106/ca0106_main.c
@@ -1352,7 +1352,7 @@ static const struct snd_pcm_chmap_elem side_map[] = {
1352 { } 1352 { }
1353}; 1353};
1354 1354
1355static int __devinit snd_ca0106_pcm(struct snd_ca0106 *emu, int device) 1355static int snd_ca0106_pcm(struct snd_ca0106 *emu, int device)
1356{ 1356{
1357 struct snd_pcm *pcm; 1357 struct snd_pcm *pcm;
1358 struct snd_pcm_substream *substream; 1358 struct snd_pcm_substream *substream;
@@ -1650,7 +1650,7 @@ static void ca0106_stop_chip(struct snd_ca0106 *chip)
1650 */ 1650 */
1651} 1651}
1652 1652
1653static int __devinit snd_ca0106_create(int dev, struct snd_card *card, 1653static int snd_ca0106_create(int dev, struct snd_card *card,
1654 struct pci_dev *pci, 1654 struct pci_dev *pci,
1655 struct snd_ca0106 **rchip) 1655 struct snd_ca0106 **rchip)
1656{ 1656{
@@ -1777,7 +1777,7 @@ static int ca0106_dev_id_port(void *dev_id)
1777 return ((struct snd_ca0106 *)dev_id)->port; 1777 return ((struct snd_ca0106 *)dev_id)->port;
1778} 1778}
1779 1779
1780static int __devinit snd_ca0106_midi(struct snd_ca0106 *chip, unsigned int channel) 1780static int snd_ca0106_midi(struct snd_ca0106 *chip, unsigned int channel)
1781{ 1781{
1782 struct snd_ca_midi *midi; 1782 struct snd_ca_midi *midi;
1783 char *name; 1783 char *name;
@@ -1828,7 +1828,7 @@ static int __devinit snd_ca0106_midi(struct snd_ca0106 *chip, unsigned int chann
1828} 1828}
1829 1829
1830 1830
1831static int __devinit snd_ca0106_probe(struct pci_dev *pci, 1831static int snd_ca0106_probe(struct pci_dev *pci,
1832 const struct pci_device_id *pci_id) 1832 const struct pci_device_id *pci_id)
1833{ 1833{
1834 static int dev; 1834 static int dev;
@@ -1893,7 +1893,7 @@ static int __devinit snd_ca0106_probe(struct pci_dev *pci,
1893 return err; 1893 return err;
1894} 1894}
1895 1895
1896static void __devexit snd_ca0106_remove(struct pci_dev *pci) 1896static void snd_ca0106_remove(struct pci_dev *pci)
1897{ 1897{
1898 snd_card_free(pci_get_drvdata(pci)); 1898 snd_card_free(pci_get_drvdata(pci));
1899 pci_set_drvdata(pci, NULL); 1899 pci_set_drvdata(pci, NULL);
@@ -1971,7 +1971,7 @@ static struct pci_driver ca0106_driver = {
1971 .name = KBUILD_MODNAME, 1971 .name = KBUILD_MODNAME,
1972 .id_table = snd_ca0106_ids, 1972 .id_table = snd_ca0106_ids,
1973 .probe = snd_ca0106_probe, 1973 .probe = snd_ca0106_probe,
1974 .remove = __devexit_p(snd_ca0106_remove), 1974 .remove = snd_ca0106_remove,
1975 .driver = { 1975 .driver = {
1976 .pm = SND_CA0106_PM_OPS, 1976 .pm = SND_CA0106_PM_OPS,
1977 }, 1977 },
diff --git a/sound/pci/ca0106/ca0106_mixer.c b/sound/pci/ca0106/ca0106_mixer.c
index 68eacf7002d6..27de0de90018 100644
--- a/sound/pci/ca0106/ca0106_mixer.c
+++ b/sound/pci/ca0106/ca0106_mixer.c
@@ -325,7 +325,7 @@ static int snd_ca0106_capture_mic_line_in_put(struct snd_kcontrol *kcontrol,
325 return change; 325 return change;
326} 326}
327 327
328static struct snd_kcontrol_new snd_ca0106_capture_mic_line_in __devinitdata = 328static struct snd_kcontrol_new snd_ca0106_capture_mic_line_in =
329{ 329{
330 .iface = SNDRV_CTL_ELEM_IFACE_MIXER, 330 .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
331 .name = "Shared Mic/Line in Capture Switch", 331 .name = "Shared Mic/Line in Capture Switch",
@@ -334,7 +334,7 @@ static struct snd_kcontrol_new snd_ca0106_capture_mic_line_in __devinitdata =
334 .put = snd_ca0106_capture_mic_line_in_put 334 .put = snd_ca0106_capture_mic_line_in_put
335}; 335};
336 336
337static struct snd_kcontrol_new snd_ca0106_capture_line_in_side_out __devinitdata = 337static struct snd_kcontrol_new snd_ca0106_capture_line_in_side_out =
338{ 338{
339 .iface = SNDRV_CTL_ELEM_IFACE_MIXER, 339 .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
340 .name = "Shared Line in/Side out Capture Switch", 340 .name = "Shared Line in/Side out Capture Switch",
@@ -588,7 +588,7 @@ static int spi_mute_put(struct snd_kcontrol *kcontrol,
588 .private_value = ((chid) << 8) | (reg) \ 588 .private_value = ((chid) << 8) | (reg) \
589} 589}
590 590
591static struct snd_kcontrol_new snd_ca0106_volume_ctls[] __devinitdata = { 591static struct snd_kcontrol_new snd_ca0106_volume_ctls[] = {
592 CA_VOLUME("Analog Front Playback Volume", 592 CA_VOLUME("Analog Front Playback Volume",
593 CONTROL_FRONT_CHANNEL, PLAYBACK_VOLUME2), 593 CONTROL_FRONT_CHANNEL, PLAYBACK_VOLUME2),
594 CA_VOLUME("Analog Rear Playback Volume", 594 CA_VOLUME("Analog Rear Playback Volume",
@@ -669,7 +669,7 @@ static struct snd_kcontrol_new snd_ca0106_volume_ctls[] __devinitdata = {
669 .private_value = chid \ 669 .private_value = chid \
670} 670}
671 671
672static struct snd_kcontrol_new snd_ca0106_volume_i2c_adc_ctls[] __devinitdata = { 672static struct snd_kcontrol_new snd_ca0106_volume_i2c_adc_ctls[] = {
673 I2C_VOLUME("Phone Capture Volume", 0), 673 I2C_VOLUME("Phone Capture Volume", 0),
674 I2C_VOLUME("Mic Capture Volume", 1), 674 I2C_VOLUME("Mic Capture Volume", 1),
675 I2C_VOLUME("Line in Capture Volume", 2), 675 I2C_VOLUME("Line in Capture Volume", 2),
@@ -691,7 +691,7 @@ static const int spi_dmute_bit[] = {
691 SPI_DMUTE4_BIT, 691 SPI_DMUTE4_BIT,
692}; 692};
693 693
694static struct snd_kcontrol_new __devinit 694static struct snd_kcontrol_new
695snd_ca0106_volume_spi_dac_ctl(struct snd_ca0106_details *details, 695snd_ca0106_volume_spi_dac_ctl(struct snd_ca0106_details *details,
696 int channel_id) 696 int channel_id)
697{ 697{
@@ -735,7 +735,7 @@ snd_ca0106_volume_spi_dac_ctl(struct snd_ca0106_details *details,
735 return spi_switch; 735 return spi_switch;
736} 736}
737 737
738static int __devinit remove_ctl(struct snd_card *card, const char *name) 738static int remove_ctl(struct snd_card *card, const char *name)
739{ 739{
740 struct snd_ctl_elem_id id; 740 struct snd_ctl_elem_id id;
741 memset(&id, 0, sizeof(id)); 741 memset(&id, 0, sizeof(id));
@@ -744,7 +744,7 @@ static int __devinit remove_ctl(struct snd_card *card, const char *name)
744 return snd_ctl_remove_id(card, &id); 744 return snd_ctl_remove_id(card, &id);
745} 745}
746 746
747static struct snd_kcontrol __devinit *ctl_find(struct snd_card *card, const char *name) 747static struct snd_kcontrol *ctl_find(struct snd_card *card, const char *name)
748{ 748{
749 struct snd_ctl_elem_id sid; 749 struct snd_ctl_elem_id sid;
750 memset(&sid, 0, sizeof(sid)); 750 memset(&sid, 0, sizeof(sid));
@@ -754,7 +754,7 @@ static struct snd_kcontrol __devinit *ctl_find(struct snd_card *card, const char
754 return snd_ctl_find_id(card, &sid); 754 return snd_ctl_find_id(card, &sid);
755} 755}
756 756
757static int __devinit rename_ctl(struct snd_card *card, const char *src, const char *dst) 757static int rename_ctl(struct snd_card *card, const char *src, const char *dst)
758{ 758{
759 struct snd_kcontrol *kctl = ctl_find(card, src); 759 struct snd_kcontrol *kctl = ctl_find(card, src);
760 if (kctl) { 760 if (kctl) {
@@ -774,10 +774,10 @@ static int __devinit rename_ctl(struct snd_card *card, const char *src, const ch
774 } \ 774 } \
775 } while (0) 775 } while (0)
776 776
777static __devinitdata 777static
778DECLARE_TLV_DB_SCALE(snd_ca0106_master_db_scale, -6375, 25, 1); 778DECLARE_TLV_DB_SCALE(snd_ca0106_master_db_scale, -6375, 25, 1);
779 779
780static char *slave_vols[] __devinitdata = { 780static char *slave_vols[] = {
781 "Analog Front Playback Volume", 781 "Analog Front Playback Volume",
782 "Analog Rear Playback Volume", 782 "Analog Rear Playback Volume",
783 "Analog Center/LFE Playback Volume", 783 "Analog Center/LFE Playback Volume",
@@ -790,7 +790,7 @@ static char *slave_vols[] __devinitdata = {
790 NULL 790 NULL
791}; 791};
792 792
793static char *slave_sws[] __devinitdata = { 793static char *slave_sws[] = {
794 "Analog Front Playback Switch", 794 "Analog Front Playback Switch",
795 "Analog Rear Playback Switch", 795 "Analog Rear Playback Switch",
796 "Analog Center/LFE Playback Switch", 796 "Analog Center/LFE Playback Switch",
@@ -799,7 +799,7 @@ static char *slave_sws[] __devinitdata = {
799 NULL 799 NULL
800}; 800};
801 801
802static void __devinit add_slaves(struct snd_card *card, 802static void add_slaves(struct snd_card *card,
803 struct snd_kcontrol *master, char **list) 803 struct snd_kcontrol *master, char **list)
804{ 804{
805 for (; *list; list++) { 805 for (; *list; list++) {
@@ -809,7 +809,7 @@ static void __devinit add_slaves(struct snd_card *card,
809 } 809 }
810} 810}
811 811
812int __devinit snd_ca0106_mixer(struct snd_ca0106 *emu) 812int snd_ca0106_mixer(struct snd_ca0106 *emu)
813{ 813{
814 int err; 814 int err;
815 struct snd_card *card = emu->card; 815 struct snd_card *card = emu->card;
diff --git a/sound/pci/ca0106/ca0106_proc.c b/sound/pci/ca0106/ca0106_proc.c
index c694464b1168..4f9c2821bb31 100644
--- a/sound/pci/ca0106/ca0106_proc.c
+++ b/sound/pci/ca0106/ca0106_proc.c
@@ -424,7 +424,7 @@ static void snd_ca0106_proc_i2c_write(struct snd_info_entry *entry,
424 } 424 }
425} 425}
426 426
427int __devinit snd_ca0106_proc_init(struct snd_ca0106 * emu) 427int snd_ca0106_proc_init(struct snd_ca0106 *emu)
428{ 428{
429 struct snd_info_entry *entry; 429 struct snd_info_entry *entry;
430 430
diff --git a/sound/pci/ca0106/ca_midi.c b/sound/pci/ca0106/ca_midi.c
index c7885117da33..8bbdf265d11d 100644
--- a/sound/pci/ca0106/ca_midi.c
+++ b/sound/pci/ca0106/ca_midi.c
@@ -286,7 +286,7 @@ static void ca_rmidi_free(struct snd_rawmidi *rmidi)
286 ca_midi_free(rmidi->private_data); 286 ca_midi_free(rmidi->private_data);
287} 287}
288 288
289int __devinit ca_midi_init(void *dev_id, struct snd_ca_midi *midi, int device, char *name) 289int ca_midi_init(void *dev_id, struct snd_ca_midi *midi, int device, char *name)
290{ 290{
291 struct snd_rawmidi *rmidi; 291 struct snd_rawmidi *rmidi;
292 int err; 292 int err;