diff options
author | Bill Pemberton <wfp5p@virginia.edu> | 2012-12-06 12:35:10 -0500 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2012-12-07 01:20:55 -0500 |
commit | e23e7a1436207217000c2854214bc908936af3cb (patch) | |
tree | aebb83a4e59dde76a79ac60b51b67849c75c545b /sound/pci/lola | |
parent | 445a51b353c35fe54840c10352ef51152fbb94df (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/lola')
-rw-r--r-- | sound/pci/lola/lola.c | 14 | ||||
-rw-r--r-- | sound/pci/lola/lola_clock.c | 2 | ||||
-rw-r--r-- | sound/pci/lola/lola_mixer.c | 32 | ||||
-rw-r--r-- | sound/pci/lola/lola_pcm.c | 4 | ||||
-rw-r--r-- | sound/pci/lola/lola_proc.c | 2 |
5 files changed, 27 insertions, 27 deletions
diff --git a/sound/pci/lola/lola.c b/sound/pci/lola/lola.c index ac15166bee68..322b638e8ec4 100644 --- a/sound/pci/lola/lola.c +++ b/sound/pci/lola/lola.c | |||
@@ -445,7 +445,7 @@ static void lola_reset_setups(struct lola *chip) | |||
445 | lola_setup_all_analog_gains(chip, PLAY, false); /* output, update */ | 445 | lola_setup_all_analog_gains(chip, PLAY, false); /* output, update */ |
446 | } | 446 | } |
447 | 447 | ||
448 | static int __devinit lola_parse_tree(struct lola *chip) | 448 | static int lola_parse_tree(struct lola *chip) |
449 | { | 449 | { |
450 | unsigned int val; | 450 | unsigned int val; |
451 | int nid, err; | 451 | int nid, err; |
@@ -568,8 +568,8 @@ static int lola_dev_free(struct snd_device *device) | |||
568 | return 0; | 568 | return 0; |
569 | } | 569 | } |
570 | 570 | ||
571 | static int __devinit lola_create(struct snd_card *card, struct pci_dev *pci, | 571 | static int lola_create(struct snd_card *card, struct pci_dev *pci, |
572 | int dev, struct lola **rchip) | 572 | int dev, struct lola **rchip) |
573 | { | 573 | { |
574 | struct lola *chip; | 574 | struct lola *chip; |
575 | int err; | 575 | int err; |
@@ -702,8 +702,8 @@ static int __devinit lola_create(struct snd_card *card, struct pci_dev *pci, | |||
702 | return err; | 702 | return err; |
703 | } | 703 | } |
704 | 704 | ||
705 | static int __devinit lola_probe(struct pci_dev *pci, | 705 | static int lola_probe(struct pci_dev *pci, |
706 | const struct pci_device_id *pci_id) | 706 | const struct pci_device_id *pci_id) |
707 | { | 707 | { |
708 | static int dev; | 708 | static int dev; |
709 | struct snd_card *card; | 709 | struct snd_card *card; |
@@ -756,7 +756,7 @@ out_free: | |||
756 | return err; | 756 | return err; |
757 | } | 757 | } |
758 | 758 | ||
759 | static void __devexit lola_remove(struct pci_dev *pci) | 759 | static void lola_remove(struct pci_dev *pci) |
760 | { | 760 | { |
761 | snd_card_free(pci_get_drvdata(pci)); | 761 | snd_card_free(pci_get_drvdata(pci)); |
762 | pci_set_drvdata(pci, NULL); | 762 | pci_set_drvdata(pci, NULL); |
@@ -774,7 +774,7 @@ static struct pci_driver lola_driver = { | |||
774 | .name = KBUILD_MODNAME, | 774 | .name = KBUILD_MODNAME, |
775 | .id_table = lola_ids, | 775 | .id_table = lola_ids, |
776 | .probe = lola_probe, | 776 | .probe = lola_probe, |
777 | .remove = __devexit_p(lola_remove), | 777 | .remove = lola_remove, |
778 | }; | 778 | }; |
779 | 779 | ||
780 | module_pci_driver(lola_driver); | 780 | module_pci_driver(lola_driver); |
diff --git a/sound/pci/lola/lola_clock.c b/sound/pci/lola/lola_clock.c index 72f8ef0ac865..eb1d6b97df16 100644 --- a/sound/pci/lola/lola_clock.c +++ b/sound/pci/lola/lola_clock.c | |||
@@ -120,7 +120,7 @@ int lola_set_granularity(struct lola *chip, unsigned int val, bool force) | |||
120 | * Clock widget handling | 120 | * Clock widget handling |
121 | */ | 121 | */ |
122 | 122 | ||
123 | int __devinit lola_init_clock_widget(struct lola *chip, int nid) | 123 | int lola_init_clock_widget(struct lola *chip, int nid) |
124 | { | 124 | { |
125 | unsigned int val; | 125 | unsigned int val; |
126 | int i, j, nitems, nb_verbs, idx, idx_list; | 126 | int i, j, nitems, nb_verbs, idx, idx_list; |
diff --git a/sound/pci/lola/lola_mixer.c b/sound/pci/lola/lola_mixer.c index 6b8d64812951..52c8d6b0f39b 100644 --- a/sound/pci/lola/lola_mixer.c +++ b/sound/pci/lola/lola_mixer.c | |||
@@ -28,8 +28,8 @@ | |||
28 | #include <sound/tlv.h> | 28 | #include <sound/tlv.h> |
29 | #include "lola.h" | 29 | #include "lola.h" |
30 | 30 | ||
31 | static int __devinit lola_init_pin(struct lola *chip, struct lola_pin *pin, | 31 | static int lola_init_pin(struct lola *chip, struct lola_pin *pin, |
32 | int dir, int nid) | 32 | int dir, int nid) |
33 | { | 33 | { |
34 | unsigned int val; | 34 | unsigned int val; |
35 | int err; | 35 | int err; |
@@ -91,7 +91,7 @@ static int __devinit lola_init_pin(struct lola *chip, struct lola_pin *pin, | |||
91 | return 0; | 91 | return 0; |
92 | } | 92 | } |
93 | 93 | ||
94 | int __devinit lola_init_pins(struct lola *chip, int dir, int *nidp) | 94 | int lola_init_pins(struct lola *chip, int dir, int *nidp) |
95 | { | 95 | { |
96 | int i, err, nid; | 96 | int i, err, nid; |
97 | nid = *nidp; | 97 | nid = *nidp; |
@@ -112,7 +112,7 @@ void lola_free_mixer(struct lola *chip) | |||
112 | vfree(chip->mixer.array_saved); | 112 | vfree(chip->mixer.array_saved); |
113 | } | 113 | } |
114 | 114 | ||
115 | int __devinit lola_init_mixer_widget(struct lola *chip, int nid) | 115 | int lola_init_mixer_widget(struct lola *chip, int nid) |
116 | { | 116 | { |
117 | unsigned int val; | 117 | unsigned int val; |
118 | int err; | 118 | int err; |
@@ -579,7 +579,7 @@ static int lola_analog_vol_tlv(struct snd_kcontrol *kcontrol, int op_flag, | |||
579 | return 0; | 579 | return 0; |
580 | } | 580 | } |
581 | 581 | ||
582 | static struct snd_kcontrol_new lola_analog_mixer __devinitdata = { | 582 | static struct snd_kcontrol_new lola_analog_mixer = { |
583 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, | 583 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, |
584 | .access = (SNDRV_CTL_ELEM_ACCESS_READWRITE | | 584 | .access = (SNDRV_CTL_ELEM_ACCESS_READWRITE | |
585 | SNDRV_CTL_ELEM_ACCESS_TLV_READ | | 585 | SNDRV_CTL_ELEM_ACCESS_TLV_READ | |
@@ -590,7 +590,7 @@ static struct snd_kcontrol_new lola_analog_mixer __devinitdata = { | |||
590 | .tlv.c = lola_analog_vol_tlv, | 590 | .tlv.c = lola_analog_vol_tlv, |
591 | }; | 591 | }; |
592 | 592 | ||
593 | static int __devinit create_analog_mixer(struct lola *chip, int dir, char *name) | 593 | static int create_analog_mixer(struct lola *chip, int dir, char *name) |
594 | { | 594 | { |
595 | if (!chip->pin[dir].num_pins) | 595 | if (!chip->pin[dir].num_pins) |
596 | return 0; | 596 | return 0; |
@@ -644,7 +644,7 @@ static int lola_input_src_put(struct snd_kcontrol *kcontrol, | |||
644 | return lola_set_src_config(chip, mask, true); | 644 | return lola_set_src_config(chip, mask, true); |
645 | } | 645 | } |
646 | 646 | ||
647 | static struct snd_kcontrol_new lola_input_src_mixer __devinitdata = { | 647 | static struct snd_kcontrol_new lola_input_src_mixer = { |
648 | .name = "Digital SRC Capture Switch", | 648 | .name = "Digital SRC Capture Switch", |
649 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, | 649 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, |
650 | .info = lola_input_src_info, | 650 | .info = lola_input_src_info, |
@@ -656,7 +656,7 @@ static struct snd_kcontrol_new lola_input_src_mixer __devinitdata = { | |||
656 | * Lola16161 or Lola881 can have Hardware sample rate converters | 656 | * Lola16161 or Lola881 can have Hardware sample rate converters |
657 | * on its digital input pins | 657 | * on its digital input pins |
658 | */ | 658 | */ |
659 | static int __devinit create_input_src_mixer(struct lola *chip) | 659 | static int create_input_src_mixer(struct lola *chip) |
660 | { | 660 | { |
661 | if (!chip->input_src_caps_mask) | 661 | if (!chip->input_src_caps_mask) |
662 | return 0; | 662 | return 0; |
@@ -726,7 +726,7 @@ static int lola_src_gain_put(struct snd_kcontrol *kcontrol, | |||
726 | /* raw value: 0 = -84dB, 336 = 0dB, 408=18dB, incremented 1 for mute */ | 726 | /* raw value: 0 = -84dB, 336 = 0dB, 408=18dB, incremented 1 for mute */ |
727 | static const DECLARE_TLV_DB_SCALE(lola_src_gain_tlv, -8425, 25, 1); | 727 | static const DECLARE_TLV_DB_SCALE(lola_src_gain_tlv, -8425, 25, 1); |
728 | 728 | ||
729 | static struct snd_kcontrol_new lola_src_gain_mixer __devinitdata = { | 729 | static struct snd_kcontrol_new lola_src_gain_mixer = { |
730 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, | 730 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, |
731 | .access = (SNDRV_CTL_ELEM_ACCESS_READWRITE | | 731 | .access = (SNDRV_CTL_ELEM_ACCESS_READWRITE | |
732 | SNDRV_CTL_ELEM_ACCESS_TLV_READ), | 732 | SNDRV_CTL_ELEM_ACCESS_TLV_READ), |
@@ -736,8 +736,8 @@ static struct snd_kcontrol_new lola_src_gain_mixer __devinitdata = { | |||
736 | .tlv.p = lola_src_gain_tlv, | 736 | .tlv.p = lola_src_gain_tlv, |
737 | }; | 737 | }; |
738 | 738 | ||
739 | static int __devinit create_src_gain_mixer(struct lola *chip, | 739 | static int create_src_gain_mixer(struct lola *chip, |
740 | int num, int ofs, char *name) | 740 | int num, int ofs, char *name) |
741 | { | 741 | { |
742 | lola_src_gain_mixer.name = name; | 742 | lola_src_gain_mixer.name = name; |
743 | lola_src_gain_mixer.private_value = ofs + (num << 8); | 743 | lola_src_gain_mixer.private_value = ofs + (num << 8); |
@@ -813,7 +813,7 @@ static int lola_dest_gain_put(struct snd_kcontrol *kcontrol, | |||
813 | 813 | ||
814 | static const DECLARE_TLV_DB_SCALE(lola_dest_gain_tlv, -8425, 25, 1); | 814 | static const DECLARE_TLV_DB_SCALE(lola_dest_gain_tlv, -8425, 25, 1); |
815 | 815 | ||
816 | static struct snd_kcontrol_new lola_dest_gain_mixer __devinitdata = { | 816 | static struct snd_kcontrol_new lola_dest_gain_mixer = { |
817 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, | 817 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, |
818 | .access = (SNDRV_CTL_ELEM_ACCESS_READWRITE | | 818 | .access = (SNDRV_CTL_ELEM_ACCESS_READWRITE | |
819 | SNDRV_CTL_ELEM_ACCESS_TLV_READ), | 819 | SNDRV_CTL_ELEM_ACCESS_TLV_READ), |
@@ -823,9 +823,9 @@ static struct snd_kcontrol_new lola_dest_gain_mixer __devinitdata = { | |||
823 | .tlv.p = lola_dest_gain_tlv, | 823 | .tlv.p = lola_dest_gain_tlv, |
824 | }; | 824 | }; |
825 | 825 | ||
826 | static int __devinit create_dest_gain_mixer(struct lola *chip, | 826 | static int create_dest_gain_mixer(struct lola *chip, |
827 | int src_num, int src_ofs, | 827 | int src_num, int src_ofs, |
828 | int num, int ofs, char *name) | 828 | int num, int ofs, char *name) |
829 | { | 829 | { |
830 | lola_dest_gain_mixer.count = num; | 830 | lola_dest_gain_mixer.count = num; |
831 | lola_dest_gain_mixer.name = name; | 831 | lola_dest_gain_mixer.name = name; |
@@ -838,7 +838,7 @@ static int __devinit create_dest_gain_mixer(struct lola *chip, | |||
838 | 838 | ||
839 | /* | 839 | /* |
840 | */ | 840 | */ |
841 | int __devinit lola_create_mixer(struct lola *chip) | 841 | int lola_create_mixer(struct lola *chip) |
842 | { | 842 | { |
843 | int err; | 843 | int err; |
844 | 844 | ||
diff --git a/sound/pci/lola/lola_pcm.c b/sound/pci/lola/lola_pcm.c index c44db68eecb5..5ea85e8b83ab 100644 --- a/sound/pci/lola/lola_pcm.c +++ b/sound/pci/lola/lola_pcm.c | |||
@@ -597,7 +597,7 @@ static struct snd_pcm_ops lola_pcm_ops = { | |||
597 | .page = snd_pcm_sgbuf_ops_page, | 597 | .page = snd_pcm_sgbuf_ops_page, |
598 | }; | 598 | }; |
599 | 599 | ||
600 | int __devinit lola_create_pcm(struct lola *chip) | 600 | int lola_create_pcm(struct lola *chip) |
601 | { | 601 | { |
602 | struct snd_pcm *pcm; | 602 | struct snd_pcm *pcm; |
603 | int i, err; | 603 | int i, err; |
@@ -690,7 +690,7 @@ static int lola_init_stream(struct lola *chip, struct lola_stream *str, | |||
690 | return 0; | 690 | return 0; |
691 | } | 691 | } |
692 | 692 | ||
693 | int __devinit lola_init_pcm(struct lola *chip, int dir, int *nidp) | 693 | int lola_init_pcm(struct lola *chip, int dir, int *nidp) |
694 | { | 694 | { |
695 | struct lola_pcm *pcm = &chip->pcm[dir]; | 695 | struct lola_pcm *pcm = &chip->pcm[dir]; |
696 | int i, nid, err; | 696 | int i, nid, err; |
diff --git a/sound/pci/lola/lola_proc.c b/sound/pci/lola/lola_proc.c index 9d7daf897c9d..04df83defc09 100644 --- a/sound/pci/lola/lola_proc.c +++ b/sound/pci/lola/lola_proc.c | |||
@@ -206,7 +206,7 @@ static void lola_proc_regs_read(struct snd_info_entry *entry, | |||
206 | } | 206 | } |
207 | } | 207 | } |
208 | 208 | ||
209 | void __devinit lola_proc_debug_new(struct lola *chip) | 209 | void lola_proc_debug_new(struct lola *chip) |
210 | { | 210 | { |
211 | struct snd_info_entry *entry; | 211 | struct snd_info_entry *entry; |
212 | 212 | ||