diff options
author | Bill Pemberton <wfp5p@virginia.edu> | 2012-12-06 12:35:21 -0500 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2012-12-07 01:32:17 -0500 |
commit | 1bff292e9abec7477d43abb2b93c7fd26c44859b (patch) | |
tree | 6c9a58a0f5aacf99a3ee4a964b1fefd4470b0893 /sound/isa/msnd | |
parent | f120a6fb486c2500c9ae11fd2da11fbde29bc186 (diff) |
ALSA: isa: 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/isa/msnd')
-rw-r--r-- | sound/isa/msnd/msnd.h | 2 | ||||
-rw-r--r-- | sound/isa/msnd/msnd_pinnacle.c | 44 | ||||
-rw-r--r-- | sound/isa/msnd/msnd_pinnacle_mixer.c | 2 |
3 files changed, 24 insertions, 24 deletions
diff --git a/sound/isa/msnd/msnd.h b/sound/isa/msnd/msnd.h index a168ba3313ac..dbac3a42347b 100644 --- a/sound/isa/msnd/msnd.h +++ b/sound/isa/msnd/msnd.h | |||
@@ -303,6 +303,6 @@ int snd_msndmidi_new(struct snd_card *card, int device); | |||
303 | void snd_msndmidi_input_read(void *mpu); | 303 | void snd_msndmidi_input_read(void *mpu); |
304 | 304 | ||
305 | void snd_msndmix_setup(struct snd_msnd *chip); | 305 | void snd_msndmix_setup(struct snd_msnd *chip); |
306 | int __devinit snd_msndmix_new(struct snd_card *card); | 306 | int snd_msndmix_new(struct snd_card *card); |
307 | int snd_msndmix_force_recsrc(struct snd_msnd *chip, int recsrc); | 307 | int snd_msndmix_force_recsrc(struct snd_msnd *chip, int recsrc); |
308 | #endif /* __MSND_H */ | 308 | #endif /* __MSND_H */ |
diff --git a/sound/isa/msnd/msnd_pinnacle.c b/sound/isa/msnd/msnd_pinnacle.c index 29cc8e162b02..ddabb406b14c 100644 --- a/sound/isa/msnd/msnd_pinnacle.c +++ b/sound/isa/msnd/msnd_pinnacle.c | |||
@@ -78,7 +78,7 @@ | |||
78 | # define LOGNAME "snd_msnd_pinnacle" | 78 | # define LOGNAME "snd_msnd_pinnacle" |
79 | #endif | 79 | #endif |
80 | 80 | ||
81 | static void __devinit set_default_audio_parameters(struct snd_msnd *chip) | 81 | static void set_default_audio_parameters(struct snd_msnd *chip) |
82 | { | 82 | { |
83 | chip->play_sample_size = DEFSAMPLESIZE; | 83 | chip->play_sample_size = DEFSAMPLESIZE; |
84 | chip->play_sample_rate = DEFSAMPLERATE; | 84 | chip->play_sample_rate = DEFSAMPLERATE; |
@@ -213,7 +213,7 @@ static int snd_msnd_reset_dsp(long io, unsigned char *info) | |||
213 | return -EIO; | 213 | return -EIO; |
214 | } | 214 | } |
215 | 215 | ||
216 | static int __devinit snd_msnd_probe(struct snd_card *card) | 216 | static int snd_msnd_probe(struct snd_card *card) |
217 | { | 217 | { |
218 | struct snd_msnd *chip = card->private_data; | 218 | struct snd_msnd *chip = card->private_data; |
219 | unsigned char info; | 219 | unsigned char info; |
@@ -497,7 +497,7 @@ static int snd_msnd_send_dsp_cmd_chk(struct snd_msnd *chip, u8 cmd) | |||
497 | return snd_msnd_send_dsp_cmd(chip, cmd); | 497 | return snd_msnd_send_dsp_cmd(chip, cmd); |
498 | } | 498 | } |
499 | 499 | ||
500 | static int __devinit snd_msnd_calibrate_adc(struct snd_msnd *chip, u16 srate) | 500 | static int snd_msnd_calibrate_adc(struct snd_msnd *chip, u16 srate) |
501 | { | 501 | { |
502 | snd_printdd("snd_msnd_calibrate_adc(%i)\n", srate); | 502 | snd_printdd("snd_msnd_calibrate_adc(%i)\n", srate); |
503 | writew(srate, chip->SMA + SMA_wCalFreqAtoD); | 503 | writew(srate, chip->SMA + SMA_wCalFreqAtoD); |
@@ -535,7 +535,7 @@ static void snd_msnd_mpu401_close(struct snd_mpu401 *mpu) | |||
535 | static long mpu_io[SNDRV_CARDS] = SNDRV_DEFAULT_PORT; | 535 | static long mpu_io[SNDRV_CARDS] = SNDRV_DEFAULT_PORT; |
536 | static int mpu_irq[SNDRV_CARDS] = SNDRV_DEFAULT_IRQ; | 536 | static int mpu_irq[SNDRV_CARDS] = SNDRV_DEFAULT_IRQ; |
537 | 537 | ||
538 | static int __devinit snd_msnd_attach(struct snd_card *card) | 538 | static int snd_msnd_attach(struct snd_card *card) |
539 | { | 539 | { |
540 | struct snd_msnd *chip = card->private_data; | 540 | struct snd_msnd *chip = card->private_data; |
541 | int err; | 541 | int err; |
@@ -634,7 +634,7 @@ err_release_region: | |||
634 | } | 634 | } |
635 | 635 | ||
636 | 636 | ||
637 | static void __devexit snd_msnd_unload(struct snd_card *card) | 637 | static void snd_msnd_unload(struct snd_card *card) |
638 | { | 638 | { |
639 | struct snd_msnd *chip = card->private_data; | 639 | struct snd_msnd *chip = card->private_data; |
640 | 640 | ||
@@ -649,7 +649,7 @@ static void __devexit snd_msnd_unload(struct snd_card *card) | |||
649 | 649 | ||
650 | /* Pinnacle/Fiji Logical Device Configuration */ | 650 | /* Pinnacle/Fiji Logical Device Configuration */ |
651 | 651 | ||
652 | static int __devinit snd_msnd_write_cfg(int cfg, int reg, int value) | 652 | static int snd_msnd_write_cfg(int cfg, int reg, int value) |
653 | { | 653 | { |
654 | outb(reg, cfg); | 654 | outb(reg, cfg); |
655 | outb(value, cfg + 1); | 655 | outb(value, cfg + 1); |
@@ -660,7 +660,7 @@ static int __devinit snd_msnd_write_cfg(int cfg, int reg, int value) | |||
660 | return 0; | 660 | return 0; |
661 | } | 661 | } |
662 | 662 | ||
663 | static int __devinit snd_msnd_write_cfg_io0(int cfg, int num, u16 io) | 663 | static int snd_msnd_write_cfg_io0(int cfg, int num, u16 io) |
664 | { | 664 | { |
665 | if (snd_msnd_write_cfg(cfg, IREG_LOGDEVICE, num)) | 665 | if (snd_msnd_write_cfg(cfg, IREG_LOGDEVICE, num)) |
666 | return -EIO; | 666 | return -EIO; |
@@ -671,7 +671,7 @@ static int __devinit snd_msnd_write_cfg_io0(int cfg, int num, u16 io) | |||
671 | return 0; | 671 | return 0; |
672 | } | 672 | } |
673 | 673 | ||
674 | static int __devinit snd_msnd_write_cfg_io1(int cfg, int num, u16 io) | 674 | static int snd_msnd_write_cfg_io1(int cfg, int num, u16 io) |
675 | { | 675 | { |
676 | if (snd_msnd_write_cfg(cfg, IREG_LOGDEVICE, num)) | 676 | if (snd_msnd_write_cfg(cfg, IREG_LOGDEVICE, num)) |
677 | return -EIO; | 677 | return -EIO; |
@@ -682,7 +682,7 @@ static int __devinit snd_msnd_write_cfg_io1(int cfg, int num, u16 io) | |||
682 | return 0; | 682 | return 0; |
683 | } | 683 | } |
684 | 684 | ||
685 | static int __devinit snd_msnd_write_cfg_irq(int cfg, int num, u16 irq) | 685 | static int snd_msnd_write_cfg_irq(int cfg, int num, u16 irq) |
686 | { | 686 | { |
687 | if (snd_msnd_write_cfg(cfg, IREG_LOGDEVICE, num)) | 687 | if (snd_msnd_write_cfg(cfg, IREG_LOGDEVICE, num)) |
688 | return -EIO; | 688 | return -EIO; |
@@ -693,7 +693,7 @@ static int __devinit snd_msnd_write_cfg_irq(int cfg, int num, u16 irq) | |||
693 | return 0; | 693 | return 0; |
694 | } | 694 | } |
695 | 695 | ||
696 | static int __devinit snd_msnd_write_cfg_mem(int cfg, int num, int mem) | 696 | static int snd_msnd_write_cfg_mem(int cfg, int num, int mem) |
697 | { | 697 | { |
698 | u16 wmem; | 698 | u16 wmem; |
699 | 699 | ||
@@ -711,7 +711,7 @@ static int __devinit snd_msnd_write_cfg_mem(int cfg, int num, int mem) | |||
711 | return 0; | 711 | return 0; |
712 | } | 712 | } |
713 | 713 | ||
714 | static int __devinit snd_msnd_activate_logical(int cfg, int num) | 714 | static int snd_msnd_activate_logical(int cfg, int num) |
715 | { | 715 | { |
716 | if (snd_msnd_write_cfg(cfg, IREG_LOGDEVICE, num)) | 716 | if (snd_msnd_write_cfg(cfg, IREG_LOGDEVICE, num)) |
717 | return -EIO; | 717 | return -EIO; |
@@ -720,8 +720,8 @@ static int __devinit snd_msnd_activate_logical(int cfg, int num) | |||
720 | return 0; | 720 | return 0; |
721 | } | 721 | } |
722 | 722 | ||
723 | static int __devinit snd_msnd_write_cfg_logical(int cfg, int num, u16 io0, | 723 | static int snd_msnd_write_cfg_logical(int cfg, int num, u16 io0, |
724 | u16 io1, u16 irq, int mem) | 724 | u16 io1, u16 irq, int mem) |
725 | { | 725 | { |
726 | if (snd_msnd_write_cfg(cfg, IREG_LOGDEVICE, num)) | 726 | if (snd_msnd_write_cfg(cfg, IREG_LOGDEVICE, num)) |
727 | return -EIO; | 727 | return -EIO; |
@@ -738,7 +738,7 @@ static int __devinit snd_msnd_write_cfg_logical(int cfg, int num, u16 io0, | |||
738 | return 0; | 738 | return 0; |
739 | } | 739 | } |
740 | 740 | ||
741 | static int __devinit snd_msnd_pinnacle_cfg_reset(int cfg) | 741 | static int snd_msnd_pinnacle_cfg_reset(int cfg) |
742 | { | 742 | { |
743 | int i; | 743 | int i; |
744 | 744 | ||
@@ -818,7 +818,7 @@ module_param_array(joystick_io, long, NULL, S_IRUGO); | |||
818 | #endif | 818 | #endif |
819 | 819 | ||
820 | 820 | ||
821 | static int __devinit snd_msnd_isa_match(struct device *pdev, unsigned int i) | 821 | static int snd_msnd_isa_match(struct device *pdev, unsigned int i) |
822 | { | 822 | { |
823 | if (io[i] == SNDRV_AUTO_PORT) | 823 | if (io[i] == SNDRV_AUTO_PORT) |
824 | return 0; | 824 | return 0; |
@@ -888,7 +888,7 @@ static int __devinit snd_msnd_isa_match(struct device *pdev, unsigned int i) | |||
888 | return 1; | 888 | return 1; |
889 | } | 889 | } |
890 | 890 | ||
891 | static int __devinit snd_msnd_isa_probe(struct device *pdev, unsigned int idx) | 891 | static int snd_msnd_isa_probe(struct device *pdev, unsigned int idx) |
892 | { | 892 | { |
893 | int err; | 893 | int err; |
894 | struct snd_card *card; | 894 | struct snd_card *card; |
@@ -1061,7 +1061,7 @@ cfg_error: | |||
1061 | #endif | 1061 | #endif |
1062 | } | 1062 | } |
1063 | 1063 | ||
1064 | static int __devexit snd_msnd_isa_remove(struct device *pdev, unsigned int dev) | 1064 | static int snd_msnd_isa_remove(struct device *pdev, unsigned int dev) |
1065 | { | 1065 | { |
1066 | snd_msnd_unload(dev_get_drvdata(pdev)); | 1066 | snd_msnd_unload(dev_get_drvdata(pdev)); |
1067 | dev_set_drvdata(pdev, NULL); | 1067 | dev_set_drvdata(pdev, NULL); |
@@ -1073,7 +1073,7 @@ static int __devexit snd_msnd_isa_remove(struct device *pdev, unsigned int dev) | |||
1073 | static struct isa_driver snd_msnd_driver = { | 1073 | static struct isa_driver snd_msnd_driver = { |
1074 | .match = snd_msnd_isa_match, | 1074 | .match = snd_msnd_isa_match, |
1075 | .probe = snd_msnd_isa_probe, | 1075 | .probe = snd_msnd_isa_probe, |
1076 | .remove = __devexit_p(snd_msnd_isa_remove), | 1076 | .remove = snd_msnd_isa_remove, |
1077 | /* FIXME: suspend, resume */ | 1077 | /* FIXME: suspend, resume */ |
1078 | .driver = { | 1078 | .driver = { |
1079 | .name = DEV_NAME | 1079 | .name = DEV_NAME |
@@ -1081,8 +1081,8 @@ static struct isa_driver snd_msnd_driver = { | |||
1081 | }; | 1081 | }; |
1082 | 1082 | ||
1083 | #ifdef CONFIG_PNP | 1083 | #ifdef CONFIG_PNP |
1084 | static int __devinit snd_msnd_pnp_detect(struct pnp_card_link *pcard, | 1084 | static int snd_msnd_pnp_detect(struct pnp_card_link *pcard, |
1085 | const struct pnp_card_device_id *pid) | 1085 | const struct pnp_card_device_id *pid) |
1086 | { | 1086 | { |
1087 | static int idx; | 1087 | static int idx; |
1088 | struct pnp_dev *pnp_dev; | 1088 | struct pnp_dev *pnp_dev; |
@@ -1185,7 +1185,7 @@ _release_card: | |||
1185 | return ret; | 1185 | return ret; |
1186 | } | 1186 | } |
1187 | 1187 | ||
1188 | static void __devexit snd_msnd_pnp_remove(struct pnp_card_link *pcard) | 1188 | static void snd_msnd_pnp_remove(struct pnp_card_link *pcard) |
1189 | { | 1189 | { |
1190 | snd_msnd_unload(pnp_get_card_drvdata(pcard)); | 1190 | snd_msnd_unload(pnp_get_card_drvdata(pcard)); |
1191 | pnp_set_card_drvdata(pcard, NULL); | 1191 | pnp_set_card_drvdata(pcard, NULL); |
@@ -1207,7 +1207,7 @@ static struct pnp_card_driver msnd_pnpc_driver = { | |||
1207 | .name = "msnd_pinnacle", | 1207 | .name = "msnd_pinnacle", |
1208 | .id_table = msnd_pnpids, | 1208 | .id_table = msnd_pnpids, |
1209 | .probe = snd_msnd_pnp_detect, | 1209 | .probe = snd_msnd_pnp_detect, |
1210 | .remove = __devexit_p(snd_msnd_pnp_remove), | 1210 | .remove = snd_msnd_pnp_remove, |
1211 | }; | 1211 | }; |
1212 | #endif /* CONFIG_PNP */ | 1212 | #endif /* CONFIG_PNP */ |
1213 | 1213 | ||
diff --git a/sound/isa/msnd/msnd_pinnacle_mixer.c b/sound/isa/msnd/msnd_pinnacle_mixer.c index 1de59d441426..031dc69b7470 100644 --- a/sound/isa/msnd/msnd_pinnacle_mixer.c +++ b/sound/isa/msnd/msnd_pinnacle_mixer.c | |||
@@ -302,7 +302,7 @@ DUMMY_VOLUME("Monitor", 0, MSND_MIXER_IMIX), | |||
302 | }; | 302 | }; |
303 | 303 | ||
304 | 304 | ||
305 | int __devinit snd_msndmix_new(struct snd_card *card) | 305 | int snd_msndmix_new(struct snd_card *card) |
306 | { | 306 | { |
307 | struct snd_msnd *chip = card->private_data; | 307 | struct snd_msnd *chip = card->private_data; |
308 | unsigned int idx; | 308 | unsigned int idx; |