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/opl3sa2.c | |
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/opl3sa2.c')
-rw-r--r-- | sound/isa/opl3sa2.c | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/sound/isa/opl3sa2.c b/sound/isa/opl3sa2.c index f6cc0b917ef0..075777a6cf0b 100644 --- a/sound/isa/opl3sa2.c +++ b/sound/isa/opl3sa2.c | |||
@@ -221,7 +221,7 @@ static void snd_opl3sa2_write(struct snd_opl3sa2 *chip, unsigned char reg, unsig | |||
221 | spin_unlock_irqrestore(&chip->reg_lock, flags); | 221 | spin_unlock_irqrestore(&chip->reg_lock, flags); |
222 | } | 222 | } |
223 | 223 | ||
224 | static int __devinit snd_opl3sa2_detect(struct snd_card *card) | 224 | static int snd_opl3sa2_detect(struct snd_card *card) |
225 | { | 225 | { |
226 | struct snd_opl3sa2 *chip = card->private_data; | 226 | struct snd_opl3sa2 *chip = card->private_data; |
227 | unsigned long port; | 227 | unsigned long port; |
@@ -496,7 +496,7 @@ static void snd_opl3sa2_master_free(struct snd_kcontrol *kcontrol) | |||
496 | chip->master_volume = NULL; | 496 | chip->master_volume = NULL; |
497 | } | 497 | } |
498 | 498 | ||
499 | static int __devinit snd_opl3sa2_mixer(struct snd_card *card) | 499 | static int snd_opl3sa2_mixer(struct snd_card *card) |
500 | { | 500 | { |
501 | struct snd_opl3sa2 *chip = card->private_data; | 501 | struct snd_opl3sa2 *chip = card->private_data; |
502 | struct snd_ctl_elem_id id1, id2; | 502 | struct snd_ctl_elem_id id1, id2; |
@@ -596,8 +596,8 @@ static int snd_opl3sa2_resume(struct snd_card *card) | |||
596 | #endif /* CONFIG_PM */ | 596 | #endif /* CONFIG_PM */ |
597 | 597 | ||
598 | #ifdef CONFIG_PNP | 598 | #ifdef CONFIG_PNP |
599 | static int __devinit snd_opl3sa2_pnp(int dev, struct snd_opl3sa2 *chip, | 599 | static int snd_opl3sa2_pnp(int dev, struct snd_opl3sa2 *chip, |
600 | struct pnp_dev *pdev) | 600 | struct pnp_dev *pdev) |
601 | { | 601 | { |
602 | if (pnp_activate_dev(pdev) < 0) { | 602 | if (pnp_activate_dev(pdev) < 0) { |
603 | snd_printk(KERN_ERR "PnP configure failure (out of resources?)\n"); | 603 | snd_printk(KERN_ERR "PnP configure failure (out of resources?)\n"); |
@@ -647,7 +647,7 @@ static int snd_opl3sa2_card_new(int dev, struct snd_card **cardp) | |||
647 | return 0; | 647 | return 0; |
648 | } | 648 | } |
649 | 649 | ||
650 | static int __devinit snd_opl3sa2_probe(struct snd_card *card, int dev) | 650 | static int snd_opl3sa2_probe(struct snd_card *card, int dev) |
651 | { | 651 | { |
652 | int xirq, xdma1, xdma2; | 652 | int xirq, xdma1, xdma2; |
653 | struct snd_opl3sa2 *chip; | 653 | struct snd_opl3sa2 *chip; |
@@ -721,8 +721,8 @@ static int __devinit snd_opl3sa2_probe(struct snd_card *card, int dev) | |||
721 | } | 721 | } |
722 | 722 | ||
723 | #ifdef CONFIG_PNP | 723 | #ifdef CONFIG_PNP |
724 | static int __devinit snd_opl3sa2_pnp_detect(struct pnp_dev *pdev, | 724 | static int snd_opl3sa2_pnp_detect(struct pnp_dev *pdev, |
725 | const struct pnp_device_id *id) | 725 | const struct pnp_device_id *id) |
726 | { | 726 | { |
727 | static int dev; | 727 | static int dev; |
728 | int err; | 728 | int err; |
@@ -754,7 +754,7 @@ static int __devinit snd_opl3sa2_pnp_detect(struct pnp_dev *pdev, | |||
754 | return 0; | 754 | return 0; |
755 | } | 755 | } |
756 | 756 | ||
757 | static void __devexit snd_opl3sa2_pnp_remove(struct pnp_dev * pdev) | 757 | static void snd_opl3sa2_pnp_remove(struct pnp_dev *pdev) |
758 | { | 758 | { |
759 | snd_card_free(pnp_get_drvdata(pdev)); | 759 | snd_card_free(pnp_get_drvdata(pdev)); |
760 | pnp_set_drvdata(pdev, NULL); | 760 | pnp_set_drvdata(pdev, NULL); |
@@ -775,15 +775,15 @@ static struct pnp_driver opl3sa2_pnp_driver = { | |||
775 | .name = "snd-opl3sa2-pnpbios", | 775 | .name = "snd-opl3sa2-pnpbios", |
776 | .id_table = snd_opl3sa2_pnpbiosids, | 776 | .id_table = snd_opl3sa2_pnpbiosids, |
777 | .probe = snd_opl3sa2_pnp_detect, | 777 | .probe = snd_opl3sa2_pnp_detect, |
778 | .remove = __devexit_p(snd_opl3sa2_pnp_remove), | 778 | .remove = snd_opl3sa2_pnp_remove, |
779 | #ifdef CONFIG_PM | 779 | #ifdef CONFIG_PM |
780 | .suspend = snd_opl3sa2_pnp_suspend, | 780 | .suspend = snd_opl3sa2_pnp_suspend, |
781 | .resume = snd_opl3sa2_pnp_resume, | 781 | .resume = snd_opl3sa2_pnp_resume, |
782 | #endif | 782 | #endif |
783 | }; | 783 | }; |
784 | 784 | ||
785 | static int __devinit snd_opl3sa2_pnp_cdetect(struct pnp_card_link *pcard, | 785 | static int snd_opl3sa2_pnp_cdetect(struct pnp_card_link *pcard, |
786 | const struct pnp_card_device_id *id) | 786 | const struct pnp_card_device_id *id) |
787 | { | 787 | { |
788 | static int dev; | 788 | static int dev; |
789 | struct pnp_dev *pdev; | 789 | struct pnp_dev *pdev; |
@@ -820,7 +820,7 @@ static int __devinit snd_opl3sa2_pnp_cdetect(struct pnp_card_link *pcard, | |||
820 | return 0; | 820 | return 0; |
821 | } | 821 | } |
822 | 822 | ||
823 | static void __devexit snd_opl3sa2_pnp_cremove(struct pnp_card_link * pcard) | 823 | static void snd_opl3sa2_pnp_cremove(struct pnp_card_link *pcard) |
824 | { | 824 | { |
825 | snd_card_free(pnp_get_card_drvdata(pcard)); | 825 | snd_card_free(pnp_get_card_drvdata(pcard)); |
826 | pnp_set_card_drvdata(pcard, NULL); | 826 | pnp_set_card_drvdata(pcard, NULL); |
@@ -842,7 +842,7 @@ static struct pnp_card_driver opl3sa2_pnpc_driver = { | |||
842 | .name = "snd-opl3sa2-cpnp", | 842 | .name = "snd-opl3sa2-cpnp", |
843 | .id_table = snd_opl3sa2_pnpids, | 843 | .id_table = snd_opl3sa2_pnpids, |
844 | .probe = snd_opl3sa2_pnp_cdetect, | 844 | .probe = snd_opl3sa2_pnp_cdetect, |
845 | .remove = __devexit_p(snd_opl3sa2_pnp_cremove), | 845 | .remove = snd_opl3sa2_pnp_cremove, |
846 | #ifdef CONFIG_PM | 846 | #ifdef CONFIG_PM |
847 | .suspend = snd_opl3sa2_pnp_csuspend, | 847 | .suspend = snd_opl3sa2_pnp_csuspend, |
848 | .resume = snd_opl3sa2_pnp_cresume, | 848 | .resume = snd_opl3sa2_pnp_cresume, |
@@ -850,8 +850,8 @@ static struct pnp_card_driver opl3sa2_pnpc_driver = { | |||
850 | }; | 850 | }; |
851 | #endif /* CONFIG_PNP */ | 851 | #endif /* CONFIG_PNP */ |
852 | 852 | ||
853 | static int __devinit snd_opl3sa2_isa_match(struct device *pdev, | 853 | static int snd_opl3sa2_isa_match(struct device *pdev, |
854 | unsigned int dev) | 854 | unsigned int dev) |
855 | { | 855 | { |
856 | if (!enable[dev]) | 856 | if (!enable[dev]) |
857 | return 0; | 857 | return 0; |
@@ -878,8 +878,8 @@ static int __devinit snd_opl3sa2_isa_match(struct device *pdev, | |||
878 | return 1; | 878 | return 1; |
879 | } | 879 | } |
880 | 880 | ||
881 | static int __devinit snd_opl3sa2_isa_probe(struct device *pdev, | 881 | static int snd_opl3sa2_isa_probe(struct device *pdev, |
882 | unsigned int dev) | 882 | unsigned int dev) |
883 | { | 883 | { |
884 | struct snd_card *card; | 884 | struct snd_card *card; |
885 | int err; | 885 | int err; |
@@ -896,8 +896,8 @@ static int __devinit snd_opl3sa2_isa_probe(struct device *pdev, | |||
896 | return 0; | 896 | return 0; |
897 | } | 897 | } |
898 | 898 | ||
899 | static int __devexit snd_opl3sa2_isa_remove(struct device *devptr, | 899 | static int snd_opl3sa2_isa_remove(struct device *devptr, |
900 | unsigned int dev) | 900 | unsigned int dev) |
901 | { | 901 | { |
902 | snd_card_free(dev_get_drvdata(devptr)); | 902 | snd_card_free(dev_get_drvdata(devptr)); |
903 | dev_set_drvdata(devptr, NULL); | 903 | dev_set_drvdata(devptr, NULL); |
@@ -922,7 +922,7 @@ static int snd_opl3sa2_isa_resume(struct device *dev, unsigned int n) | |||
922 | static struct isa_driver snd_opl3sa2_isa_driver = { | 922 | static struct isa_driver snd_opl3sa2_isa_driver = { |
923 | .match = snd_opl3sa2_isa_match, | 923 | .match = snd_opl3sa2_isa_match, |
924 | .probe = snd_opl3sa2_isa_probe, | 924 | .probe = snd_opl3sa2_isa_probe, |
925 | .remove = __devexit_p(snd_opl3sa2_isa_remove), | 925 | .remove = snd_opl3sa2_isa_remove, |
926 | #ifdef CONFIG_PM | 926 | #ifdef CONFIG_PM |
927 | .suspend = snd_opl3sa2_isa_suspend, | 927 | .suspend = snd_opl3sa2_isa_suspend, |
928 | .resume = snd_opl3sa2_isa_resume, | 928 | .resume = snd_opl3sa2_isa_resume, |