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/echoaudio | |
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/echoaudio')
-rw-r--r-- | sound/pci/echoaudio/echoaudio.c | 46 | ||||
-rw-r--r-- | sound/pci/echoaudio/echoaudio.h | 4 | ||||
-rw-r--r-- | sound/pci/echoaudio/midi.c | 4 |
3 files changed, 27 insertions, 27 deletions
diff --git a/sound/pci/echoaudio/echoaudio.c b/sound/pci/echoaudio/echoaudio.c index abb0b86c41c9..760cbff53210 100644 --- a/sound/pci/echoaudio/echoaudio.c +++ b/sound/pci/echoaudio/echoaudio.c | |||
@@ -907,7 +907,7 @@ static int snd_echo_preallocate_pages(struct snd_pcm *pcm, struct device *dev) | |||
907 | 907 | ||
908 | 908 | ||
909 | /*<--snd_echo_probe() */ | 909 | /*<--snd_echo_probe() */ |
910 | static int __devinit snd_echo_new_pcm(struct echoaudio *chip) | 910 | static int snd_echo_new_pcm(struct echoaudio *chip) |
911 | { | 911 | { |
912 | struct snd_pcm *pcm; | 912 | struct snd_pcm *pcm; |
913 | int err; | 913 | int err; |
@@ -1050,7 +1050,7 @@ static int snd_echo_output_gain_put(struct snd_kcontrol *kcontrol, | |||
1050 | 1050 | ||
1051 | #ifdef ECHOCARD_HAS_LINE_OUT_GAIN | 1051 | #ifdef ECHOCARD_HAS_LINE_OUT_GAIN |
1052 | /* On the Mia this one controls the line-out volume */ | 1052 | /* On the Mia this one controls the line-out volume */ |
1053 | static struct snd_kcontrol_new snd_echo_line_output_gain __devinitdata = { | 1053 | static struct snd_kcontrol_new snd_echo_line_output_gain = { |
1054 | .name = "Line Playback Volume", | 1054 | .name = "Line Playback Volume", |
1055 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, | 1055 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, |
1056 | .access = SNDRV_CTL_ELEM_ACCESS_READWRITE | | 1056 | .access = SNDRV_CTL_ELEM_ACCESS_READWRITE | |
@@ -1061,7 +1061,7 @@ static struct snd_kcontrol_new snd_echo_line_output_gain __devinitdata = { | |||
1061 | .tlv = {.p = db_scale_output_gain}, | 1061 | .tlv = {.p = db_scale_output_gain}, |
1062 | }; | 1062 | }; |
1063 | #else | 1063 | #else |
1064 | static struct snd_kcontrol_new snd_echo_pcm_output_gain __devinitdata = { | 1064 | static struct snd_kcontrol_new snd_echo_pcm_output_gain = { |
1065 | .name = "PCM Playback Volume", | 1065 | .name = "PCM Playback Volume", |
1066 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, | 1066 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, |
1067 | .access = SNDRV_CTL_ELEM_ACCESS_READWRITE | SNDRV_CTL_ELEM_ACCESS_TLV_READ, | 1067 | .access = SNDRV_CTL_ELEM_ACCESS_READWRITE | SNDRV_CTL_ELEM_ACCESS_TLV_READ, |
@@ -1131,7 +1131,7 @@ static int snd_echo_input_gain_put(struct snd_kcontrol *kcontrol, | |||
1131 | 1131 | ||
1132 | static const DECLARE_TLV_DB_SCALE(db_scale_input_gain, -2500, 50, 0); | 1132 | static const DECLARE_TLV_DB_SCALE(db_scale_input_gain, -2500, 50, 0); |
1133 | 1133 | ||
1134 | static struct snd_kcontrol_new snd_echo_line_input_gain __devinitdata = { | 1134 | static struct snd_kcontrol_new snd_echo_line_input_gain = { |
1135 | .name = "Line Capture Volume", | 1135 | .name = "Line Capture Volume", |
1136 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, | 1136 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, |
1137 | .access = SNDRV_CTL_ELEM_ACCESS_READWRITE | SNDRV_CTL_ELEM_ACCESS_TLV_READ, | 1137 | .access = SNDRV_CTL_ELEM_ACCESS_READWRITE | SNDRV_CTL_ELEM_ACCESS_TLV_READ, |
@@ -1195,7 +1195,7 @@ static int snd_echo_output_nominal_put(struct snd_kcontrol *kcontrol, | |||
1195 | return changed; | 1195 | return changed; |
1196 | } | 1196 | } |
1197 | 1197 | ||
1198 | static struct snd_kcontrol_new snd_echo_output_nominal_level __devinitdata = { | 1198 | static struct snd_kcontrol_new snd_echo_output_nominal_level = { |
1199 | .name = "Line Playback Switch (-10dBV)", | 1199 | .name = "Line Playback Switch (-10dBV)", |
1200 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, | 1200 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, |
1201 | .info = snd_echo_output_nominal_info, | 1201 | .info = snd_echo_output_nominal_info, |
@@ -1261,7 +1261,7 @@ static int snd_echo_input_nominal_put(struct snd_kcontrol *kcontrol, | |||
1261 | return changed; | 1261 | return changed; |
1262 | } | 1262 | } |
1263 | 1263 | ||
1264 | static struct snd_kcontrol_new snd_echo_intput_nominal_level __devinitdata = { | 1264 | static struct snd_kcontrol_new snd_echo_intput_nominal_level = { |
1265 | .name = "Line Capture Switch (-10dBV)", | 1265 | .name = "Line Capture Switch (-10dBV)", |
1266 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, | 1266 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, |
1267 | .info = snd_echo_input_nominal_info, | 1267 | .info = snd_echo_input_nominal_info, |
@@ -1327,7 +1327,7 @@ static int snd_echo_mixer_put(struct snd_kcontrol *kcontrol, | |||
1327 | return changed; | 1327 | return changed; |
1328 | } | 1328 | } |
1329 | 1329 | ||
1330 | static struct snd_kcontrol_new snd_echo_monitor_mixer __devinitdata = { | 1330 | static struct snd_kcontrol_new snd_echo_monitor_mixer = { |
1331 | .name = "Monitor Mixer Volume", | 1331 | .name = "Monitor Mixer Volume", |
1332 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, | 1332 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, |
1333 | .access = SNDRV_CTL_ELEM_ACCESS_READWRITE | SNDRV_CTL_ELEM_ACCESS_TLV_READ, | 1333 | .access = SNDRV_CTL_ELEM_ACCESS_READWRITE | SNDRV_CTL_ELEM_ACCESS_TLV_READ, |
@@ -1395,7 +1395,7 @@ static int snd_echo_vmixer_put(struct snd_kcontrol *kcontrol, | |||
1395 | return changed; | 1395 | return changed; |
1396 | } | 1396 | } |
1397 | 1397 | ||
1398 | static struct snd_kcontrol_new snd_echo_vmixer __devinitdata = { | 1398 | static struct snd_kcontrol_new snd_echo_vmixer = { |
1399 | .name = "VMixer Volume", | 1399 | .name = "VMixer Volume", |
1400 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, | 1400 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, |
1401 | .access = SNDRV_CTL_ELEM_ACCESS_READWRITE | SNDRV_CTL_ELEM_ACCESS_TLV_READ, | 1401 | .access = SNDRV_CTL_ELEM_ACCESS_READWRITE | SNDRV_CTL_ELEM_ACCESS_TLV_READ, |
@@ -1490,7 +1490,7 @@ static int snd_echo_digital_mode_put(struct snd_kcontrol *kcontrol, | |||
1490 | return changed; | 1490 | return changed; |
1491 | } | 1491 | } |
1492 | 1492 | ||
1493 | static struct snd_kcontrol_new snd_echo_digital_mode_switch __devinitdata = { | 1493 | static struct snd_kcontrol_new snd_echo_digital_mode_switch = { |
1494 | .name = "Digital mode Switch", | 1494 | .name = "Digital mode Switch", |
1495 | .iface = SNDRV_CTL_ELEM_IFACE_CARD, | 1495 | .iface = SNDRV_CTL_ELEM_IFACE_CARD, |
1496 | .info = snd_echo_digital_mode_info, | 1496 | .info = snd_echo_digital_mode_info, |
@@ -1547,7 +1547,7 @@ static int snd_echo_spdif_mode_put(struct snd_kcontrol *kcontrol, | |||
1547 | return 0; | 1547 | return 0; |
1548 | } | 1548 | } |
1549 | 1549 | ||
1550 | static struct snd_kcontrol_new snd_echo_spdif_mode_switch __devinitdata = { | 1550 | static struct snd_kcontrol_new snd_echo_spdif_mode_switch = { |
1551 | .name = "S/PDIF mode Switch", | 1551 | .name = "S/PDIF mode Switch", |
1552 | .iface = SNDRV_CTL_ELEM_IFACE_CARD, | 1552 | .iface = SNDRV_CTL_ELEM_IFACE_CARD, |
1553 | .info = snd_echo_spdif_mode_info, | 1553 | .info = snd_echo_spdif_mode_info, |
@@ -1626,7 +1626,7 @@ static int snd_echo_clock_source_put(struct snd_kcontrol *kcontrol, | |||
1626 | return changed; | 1626 | return changed; |
1627 | } | 1627 | } |
1628 | 1628 | ||
1629 | static struct snd_kcontrol_new snd_echo_clock_source_switch __devinitdata = { | 1629 | static struct snd_kcontrol_new snd_echo_clock_source_switch = { |
1630 | .name = "Sample Clock Source", | 1630 | .name = "Sample Clock Source", |
1631 | .iface = SNDRV_CTL_ELEM_IFACE_PCM, | 1631 | .iface = SNDRV_CTL_ELEM_IFACE_PCM, |
1632 | .info = snd_echo_clock_source_info, | 1632 | .info = snd_echo_clock_source_info, |
@@ -1669,7 +1669,7 @@ static int snd_echo_phantom_power_put(struct snd_kcontrol *kcontrol, | |||
1669 | return changed; | 1669 | return changed; |
1670 | } | 1670 | } |
1671 | 1671 | ||
1672 | static struct snd_kcontrol_new snd_echo_phantom_power_switch __devinitdata = { | 1672 | static struct snd_kcontrol_new snd_echo_phantom_power_switch = { |
1673 | .name = "Phantom power Switch", | 1673 | .name = "Phantom power Switch", |
1674 | .iface = SNDRV_CTL_ELEM_IFACE_CARD, | 1674 | .iface = SNDRV_CTL_ELEM_IFACE_CARD, |
1675 | .info = snd_echo_phantom_power_info, | 1675 | .info = snd_echo_phantom_power_info, |
@@ -1712,7 +1712,7 @@ static int snd_echo_automute_put(struct snd_kcontrol *kcontrol, | |||
1712 | return changed; | 1712 | return changed; |
1713 | } | 1713 | } |
1714 | 1714 | ||
1715 | static struct snd_kcontrol_new snd_echo_automute_switch __devinitdata = { | 1715 | static struct snd_kcontrol_new snd_echo_automute_switch = { |
1716 | .name = "Digital Capture Switch (automute)", | 1716 | .name = "Digital Capture Switch (automute)", |
1717 | .iface = SNDRV_CTL_ELEM_IFACE_CARD, | 1717 | .iface = SNDRV_CTL_ELEM_IFACE_CARD, |
1718 | .info = snd_echo_automute_info, | 1718 | .info = snd_echo_automute_info, |
@@ -1739,7 +1739,7 @@ static int snd_echo_vumeters_switch_put(struct snd_kcontrol *kcontrol, | |||
1739 | return 1; | 1739 | return 1; |
1740 | } | 1740 | } |
1741 | 1741 | ||
1742 | static struct snd_kcontrol_new snd_echo_vumeters_switch __devinitdata = { | 1742 | static struct snd_kcontrol_new snd_echo_vumeters_switch = { |
1743 | .name = "VU-meters Switch", | 1743 | .name = "VU-meters Switch", |
1744 | .iface = SNDRV_CTL_ELEM_IFACE_CARD, | 1744 | .iface = SNDRV_CTL_ELEM_IFACE_CARD, |
1745 | .access = SNDRV_CTL_ELEM_ACCESS_WRITE, | 1745 | .access = SNDRV_CTL_ELEM_ACCESS_WRITE, |
@@ -1780,7 +1780,7 @@ static int snd_echo_vumeters_get(struct snd_kcontrol *kcontrol, | |||
1780 | return 0; | 1780 | return 0; |
1781 | } | 1781 | } |
1782 | 1782 | ||
1783 | static struct snd_kcontrol_new snd_echo_vumeters __devinitdata = { | 1783 | static struct snd_kcontrol_new snd_echo_vumeters = { |
1784 | .name = "VU-meters", | 1784 | .name = "VU-meters", |
1785 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, | 1785 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, |
1786 | .access = SNDRV_CTL_ELEM_ACCESS_READ | | 1786 | .access = SNDRV_CTL_ELEM_ACCESS_READ | |
@@ -1836,7 +1836,7 @@ static int snd_echo_channels_info_get(struct snd_kcontrol *kcontrol, | |||
1836 | return 0; | 1836 | return 0; |
1837 | } | 1837 | } |
1838 | 1838 | ||
1839 | static struct snd_kcontrol_new snd_echo_channels_info __devinitdata = { | 1839 | static struct snd_kcontrol_new snd_echo_channels_info = { |
1840 | .name = "Channels info", | 1840 | .name = "Channels info", |
1841 | .iface = SNDRV_CTL_ELEM_IFACE_HWDEP, | 1841 | .iface = SNDRV_CTL_ELEM_IFACE_HWDEP, |
1842 | .access = SNDRV_CTL_ELEM_ACCESS_READ | SNDRV_CTL_ELEM_ACCESS_VOLATILE, | 1842 | .access = SNDRV_CTL_ELEM_ACCESS_READ | SNDRV_CTL_ELEM_ACCESS_VOLATILE, |
@@ -1940,9 +1940,9 @@ static int snd_echo_dev_free(struct snd_device *device) | |||
1940 | 1940 | ||
1941 | 1941 | ||
1942 | /* <--snd_echo_probe() */ | 1942 | /* <--snd_echo_probe() */ |
1943 | static __devinit int snd_echo_create(struct snd_card *card, | 1943 | static int snd_echo_create(struct snd_card *card, |
1944 | struct pci_dev *pci, | 1944 | struct pci_dev *pci, |
1945 | struct echoaudio **rchip) | 1945 | struct echoaudio **rchip) |
1946 | { | 1946 | { |
1947 | struct echoaudio *chip; | 1947 | struct echoaudio *chip; |
1948 | int err; | 1948 | int err; |
@@ -2040,8 +2040,8 @@ static __devinit int snd_echo_create(struct snd_card *card, | |||
2040 | 2040 | ||
2041 | 2041 | ||
2042 | /* constructor */ | 2042 | /* constructor */ |
2043 | static int __devinit snd_echo_probe(struct pci_dev *pci, | 2043 | static int snd_echo_probe(struct pci_dev *pci, |
2044 | const struct pci_device_id *pci_id) | 2044 | const struct pci_device_id *pci_id) |
2045 | { | 2045 | { |
2046 | static int dev; | 2046 | static int dev; |
2047 | struct snd_card *card; | 2047 | struct snd_card *card; |
@@ -2316,7 +2316,7 @@ static SIMPLE_DEV_PM_OPS(snd_echo_pm, snd_echo_suspend, snd_echo_resume); | |||
2316 | #endif /* CONFIG_PM_SLEEP */ | 2316 | #endif /* CONFIG_PM_SLEEP */ |
2317 | 2317 | ||
2318 | 2318 | ||
2319 | static void __devexit snd_echo_remove(struct pci_dev *pci) | 2319 | static void snd_echo_remove(struct pci_dev *pci) |
2320 | { | 2320 | { |
2321 | struct echoaudio *chip; | 2321 | struct echoaudio *chip; |
2322 | 2322 | ||
@@ -2337,7 +2337,7 @@ static struct pci_driver echo_driver = { | |||
2337 | .name = KBUILD_MODNAME, | 2337 | .name = KBUILD_MODNAME, |
2338 | .id_table = snd_echo_ids, | 2338 | .id_table = snd_echo_ids, |
2339 | .probe = snd_echo_probe, | 2339 | .probe = snd_echo_probe, |
2340 | .remove = __devexit_p(snd_echo_remove), | 2340 | .remove = snd_echo_remove, |
2341 | .driver = { | 2341 | .driver = { |
2342 | .pm = SND_ECHO_PM_OPS, | 2342 | .pm = SND_ECHO_PM_OPS, |
2343 | }, | 2343 | }, |
diff --git a/sound/pci/echoaudio/echoaudio.h b/sound/pci/echoaudio/echoaudio.h index e158369f5faa..b86b88da81cd 100644 --- a/sound/pci/echoaudio/echoaudio.h +++ b/sound/pci/echoaudio/echoaudio.h | |||
@@ -475,8 +475,8 @@ static int enable_midi_input(struct echoaudio *chip, char enable); | |||
475 | static void snd_echo_midi_output_trigger( | 475 | static void snd_echo_midi_output_trigger( |
476 | struct snd_rawmidi_substream *substream, int up); | 476 | struct snd_rawmidi_substream *substream, int up); |
477 | static int midi_service_irq(struct echoaudio *chip); | 477 | static int midi_service_irq(struct echoaudio *chip); |
478 | static int __devinit snd_echo_midi_create(struct snd_card *card, | 478 | static int snd_echo_midi_create(struct snd_card *card, |
479 | struct echoaudio *chip); | 479 | struct echoaudio *chip); |
480 | #endif | 480 | #endif |
481 | 481 | ||
482 | 482 | ||
diff --git a/sound/pci/echoaudio/midi.c b/sound/pci/echoaudio/midi.c index a953d142cb4b..abfd51c2530e 100644 --- a/sound/pci/echoaudio/midi.c +++ b/sound/pci/echoaudio/midi.c | |||
@@ -307,8 +307,8 @@ static struct snd_rawmidi_ops snd_echo_midi_output = { | |||
307 | 307 | ||
308 | 308 | ||
309 | /* <--snd_echo_probe() */ | 309 | /* <--snd_echo_probe() */ |
310 | static int __devinit snd_echo_midi_create(struct snd_card *card, | 310 | static int snd_echo_midi_create(struct snd_card *card, |
311 | struct echoaudio *chip) | 311 | struct echoaudio *chip) |
312 | { | 312 | { |
313 | int err; | 313 | int err; |
314 | 314 | ||