diff options
author | Prarit Bhargava <prarit@redhat.com> | 2007-02-13 07:11:11 -0500 |
---|---|---|
committer | Jaroslav Kysela <perex@suse.cz> | 2007-02-14 02:38:28 -0500 |
commit | 788c6043335590e0a483fdc18f85b1405a157bf9 (patch) | |
tree | 23e24335e62ba0f692da4707933c7680e94fa1d8 /sound | |
parent | 46f02ca36e9b2b690ebcef18fa0652c586d6c08e (diff) |
[ALSA] Fix __devinit and __devexit issues with sound drivers
Fix __devinit and __devexit issues with sound drivers.
Resolves MODPOST warnings similar to:
WARNING: sound/drivers/snd-dummy.o - Section mismatch: reference to .init.text:snd_dummy_probe from .data.rel.local between 'snd_dummy_driver' (at offset 0x0) and 'snd_dummy_controls'
WARNING: sound/drivers/snd-mtpav.o - Section mismatch: reference to .init.text:snd_mtpav_probe from .data.rel.local between 'snd_mtpav_driver' (at offset 0x0) and 'snd_mtpav_input'
WARNING: sound/drivers/snd-virmidi.o - Section mismatch: reference to .init.text:snd_virmidi_probe from .data.rel.local after 'snd_virmidi_driver' (at offset 0x0)
Signed-off-by: Prarit Bhargava <prarit@redhat.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/arm/pxa2xx-ac97.c | 6 | ||||
-rw-r--r-- | sound/drivers/dummy.c | 11 | ||||
-rw-r--r-- | sound/drivers/mtpav.c | 12 | ||||
-rw-r--r-- | sound/drivers/mts64.c | 6 | ||||
-rw-r--r-- | sound/drivers/portman2x4.c | 6 | ||||
-rw-r--r-- | sound/drivers/serial-u16550.c | 14 | ||||
-rw-r--r-- | sound/drivers/virmidi.c | 6 | ||||
-rw-r--r-- | sound/isa/ad1848/ad1848.c | 2 | ||||
-rw-r--r-- | sound/isa/cmi8330.c | 4 | ||||
-rw-r--r-- | sound/isa/es1688/es1688.c | 6 | ||||
-rw-r--r-- | sound/isa/gus/gusclassic.c | 10 | ||||
-rw-r--r-- | sound/isa/gus/gusextreme.c | 12 | ||||
-rw-r--r-- | sound/isa/gus/gusmax.c | 13 | ||||
-rw-r--r-- | sound/isa/opl3sa2.c | 4 | ||||
-rw-r--r-- | sound/isa/sb/sb8.c | 6 |
15 files changed, 60 insertions, 58 deletions
diff --git a/sound/arm/pxa2xx-ac97.c b/sound/arm/pxa2xx-ac97.c index dede954b2c6..28db4be7a16 100644 --- a/sound/arm/pxa2xx-ac97.c +++ b/sound/arm/pxa2xx-ac97.c | |||
@@ -305,7 +305,7 @@ static int pxa2xx_ac97_resume(struct platform_device *dev) | |||
305 | #define pxa2xx_ac97_resume NULL | 305 | #define pxa2xx_ac97_resume NULL |
306 | #endif | 306 | #endif |
307 | 307 | ||
308 | static int pxa2xx_ac97_probe(struct platform_device *dev) | 308 | static int __devinit pxa2xx_ac97_probe(struct platform_device *dev) |
309 | { | 309 | { |
310 | struct snd_card *card; | 310 | struct snd_card *card; |
311 | struct snd_ac97_bus *ac97_bus; | 311 | struct snd_ac97_bus *ac97_bus; |
@@ -369,7 +369,7 @@ static int pxa2xx_ac97_probe(struct platform_device *dev) | |||
369 | return ret; | 369 | return ret; |
370 | } | 370 | } |
371 | 371 | ||
372 | static int pxa2xx_ac97_remove(struct platform_device *dev) | 372 | static int __devexit pxa2xx_ac97_remove(struct platform_device *dev) |
373 | { | 373 | { |
374 | struct snd_card *card = platform_get_drvdata(dev); | 374 | struct snd_card *card = platform_get_drvdata(dev); |
375 | 375 | ||
@@ -386,7 +386,7 @@ static int pxa2xx_ac97_remove(struct platform_device *dev) | |||
386 | 386 | ||
387 | static struct platform_driver pxa2xx_ac97_driver = { | 387 | static struct platform_driver pxa2xx_ac97_driver = { |
388 | .probe = pxa2xx_ac97_probe, | 388 | .probe = pxa2xx_ac97_probe, |
389 | .remove = pxa2xx_ac97_remove, | 389 | .remove = __devexit_p(pxa2xx_ac97_remove), |
390 | .suspend = pxa2xx_ac97_suspend, | 390 | .suspend = pxa2xx_ac97_suspend, |
391 | .resume = pxa2xx_ac97_resume, | 391 | .resume = pxa2xx_ac97_resume, |
392 | .driver = { | 392 | .driver = { |
diff --git a/sound/drivers/dummy.c b/sound/drivers/dummy.c index 8339bad969b..a0f28f51fc7 100644 --- a/sound/drivers/dummy.c +++ b/sound/drivers/dummy.c | |||
@@ -423,7 +423,8 @@ static struct snd_pcm_ops snd_card_dummy_capture_ops = { | |||
423 | .pointer = snd_card_dummy_pcm_pointer, | 423 | .pointer = snd_card_dummy_pcm_pointer, |
424 | }; | 424 | }; |
425 | 425 | ||
426 | static int __init snd_card_dummy_pcm(struct snd_dummy *dummy, int device, int substreams) | 426 | static int __devinit snd_card_dummy_pcm(struct snd_dummy *dummy, int device, |
427 | int substreams) | ||
427 | { | 428 | { |
428 | struct snd_pcm *pcm; | 429 | struct snd_pcm *pcm; |
429 | int err; | 430 | int err; |
@@ -562,7 +563,7 @@ DUMMY_VOLUME("CD Volume", 0, MIXER_ADDR_CD), | |||
562 | DUMMY_CAPSRC("CD Capture Switch", 0, MIXER_ADDR_CD) | 563 | DUMMY_CAPSRC("CD Capture Switch", 0, MIXER_ADDR_CD) |
563 | }; | 564 | }; |
564 | 565 | ||
565 | static int __init snd_card_dummy_new_mixer(struct snd_dummy *dummy) | 566 | static int __devinit snd_card_dummy_new_mixer(struct snd_dummy *dummy) |
566 | { | 567 | { |
567 | struct snd_card *card = dummy->card; | 568 | struct snd_card *card = dummy->card; |
568 | unsigned int idx; | 569 | unsigned int idx; |
@@ -579,7 +580,7 @@ static int __init snd_card_dummy_new_mixer(struct snd_dummy *dummy) | |||
579 | return 0; | 580 | return 0; |
580 | } | 581 | } |
581 | 582 | ||
582 | static int __init snd_dummy_probe(struct platform_device *devptr) | 583 | static int __devinit snd_dummy_probe(struct platform_device *devptr) |
583 | { | 584 | { |
584 | struct snd_card *card; | 585 | struct snd_card *card; |
585 | struct snd_dummy *dummy; | 586 | struct snd_dummy *dummy; |
@@ -617,7 +618,7 @@ static int __init snd_dummy_probe(struct platform_device *devptr) | |||
617 | return err; | 618 | return err; |
618 | } | 619 | } |
619 | 620 | ||
620 | static int snd_dummy_remove(struct platform_device *devptr) | 621 | static int __devexit snd_dummy_remove(struct platform_device *devptr) |
621 | { | 622 | { |
622 | snd_card_free(platform_get_drvdata(devptr)); | 623 | snd_card_free(platform_get_drvdata(devptr)); |
623 | platform_set_drvdata(devptr, NULL); | 624 | platform_set_drvdata(devptr, NULL); |
@@ -648,7 +649,7 @@ static int snd_dummy_resume(struct platform_device *pdev) | |||
648 | 649 | ||
649 | static struct platform_driver snd_dummy_driver = { | 650 | static struct platform_driver snd_dummy_driver = { |
650 | .probe = snd_dummy_probe, | 651 | .probe = snd_dummy_probe, |
651 | .remove = snd_dummy_remove, | 652 | .remove = __devexit_p(snd_dummy_remove), |
652 | #ifdef CONFIG_PM | 653 | #ifdef CONFIG_PM |
653 | .suspend = snd_dummy_suspend, | 654 | .suspend = snd_dummy_suspend, |
654 | .resume = snd_dummy_resume, | 655 | .resume = snd_dummy_resume, |
diff --git a/sound/drivers/mtpav.c b/sound/drivers/mtpav.c index a9ff391258e..40eb026c86e 100644 --- a/sound/drivers/mtpav.c +++ b/sound/drivers/mtpav.c | |||
@@ -583,7 +583,7 @@ static irqreturn_t snd_mtpav_irqh(int irq, void *dev_id) | |||
583 | /* | 583 | /* |
584 | * get ISA resources | 584 | * get ISA resources |
585 | */ | 585 | */ |
586 | static int __init snd_mtpav_get_ISA(struct mtpav * mcard) | 586 | static int __devinit snd_mtpav_get_ISA(struct mtpav * mcard) |
587 | { | 587 | { |
588 | if ((mcard->res_port = request_region(port, 3, "MotuMTPAV MIDI")) == NULL) { | 588 | if ((mcard->res_port = request_region(port, 3, "MotuMTPAV MIDI")) == NULL) { |
589 | snd_printk("MTVAP port 0x%lx is busy\n", port); | 589 | snd_printk("MTVAP port 0x%lx is busy\n", port); |
@@ -619,7 +619,7 @@ static struct snd_rawmidi_ops snd_mtpav_input = { | |||
619 | * get RAWMIDI resources | 619 | * get RAWMIDI resources |
620 | */ | 620 | */ |
621 | 621 | ||
622 | static void __init snd_mtpav_set_name(struct mtpav *chip, | 622 | static void __devinit snd_mtpav_set_name(struct mtpav *chip, |
623 | struct snd_rawmidi_substream *substream) | 623 | struct snd_rawmidi_substream *substream) |
624 | { | 624 | { |
625 | if (substream->number >= 0 && substream->number < chip->num_ports) | 625 | if (substream->number >= 0 && substream->number < chip->num_ports) |
@@ -634,7 +634,7 @@ static void __init snd_mtpav_set_name(struct mtpav *chip, | |||
634 | strcpy(substream->name, "MTP broadcast"); | 634 | strcpy(substream->name, "MTP broadcast"); |
635 | } | 635 | } |
636 | 636 | ||
637 | static int __init snd_mtpav_get_RAWMIDI(struct mtpav *mcard) | 637 | static int __devinit snd_mtpav_get_RAWMIDI(struct mtpav *mcard) |
638 | { | 638 | { |
639 | int rval; | 639 | int rval; |
640 | struct snd_rawmidi *rawmidi; | 640 | struct snd_rawmidi *rawmidi; |
@@ -691,7 +691,7 @@ static void snd_mtpav_free(struct snd_card *card) | |||
691 | 691 | ||
692 | /* | 692 | /* |
693 | */ | 693 | */ |
694 | static int __init snd_mtpav_probe(struct platform_device *dev) | 694 | static int __devinit snd_mtpav_probe(struct platform_device *dev) |
695 | { | 695 | { |
696 | struct snd_card *card; | 696 | struct snd_card *card; |
697 | int err; | 697 | int err; |
@@ -745,7 +745,7 @@ static int __init snd_mtpav_probe(struct platform_device *dev) | |||
745 | return err; | 745 | return err; |
746 | } | 746 | } |
747 | 747 | ||
748 | static int snd_mtpav_remove(struct platform_device *devptr) | 748 | static int __devexit snd_mtpav_remove(struct platform_device *devptr) |
749 | { | 749 | { |
750 | snd_card_free(platform_get_drvdata(devptr)); | 750 | snd_card_free(platform_get_drvdata(devptr)); |
751 | platform_set_drvdata(devptr, NULL); | 751 | platform_set_drvdata(devptr, NULL); |
@@ -756,7 +756,7 @@ static int snd_mtpav_remove(struct platform_device *devptr) | |||
756 | 756 | ||
757 | static struct platform_driver snd_mtpav_driver = { | 757 | static struct platform_driver snd_mtpav_driver = { |
758 | .probe = snd_mtpav_probe, | 758 | .probe = snd_mtpav_probe, |
759 | .remove = snd_mtpav_remove, | 759 | .remove = __devexit_p(snd_mtpav_remove), |
760 | .driver = { | 760 | .driver = { |
761 | .name = SND_MTPAV_DRIVER | 761 | .name = SND_MTPAV_DRIVER |
762 | }, | 762 | }, |
diff --git a/sound/drivers/mts64.c b/sound/drivers/mts64.c index 5327c6f841f..6c9f4c9bfeb 100644 --- a/sound/drivers/mts64.c +++ b/sound/drivers/mts64.c | |||
@@ -1026,7 +1026,7 @@ __err: | |||
1026 | return err; | 1026 | return err; |
1027 | } | 1027 | } |
1028 | 1028 | ||
1029 | static int snd_mts64_remove(struct platform_device *pdev) | 1029 | static int __devexit snd_mts64_remove(struct platform_device *pdev) |
1030 | { | 1030 | { |
1031 | struct snd_card *card = platform_get_drvdata(pdev); | 1031 | struct snd_card *card = platform_get_drvdata(pdev); |
1032 | 1032 | ||
@@ -1039,7 +1039,7 @@ static int snd_mts64_remove(struct platform_device *pdev) | |||
1039 | 1039 | ||
1040 | static struct platform_driver snd_mts64_driver = { | 1040 | static struct platform_driver snd_mts64_driver = { |
1041 | .probe = snd_mts64_probe, | 1041 | .probe = snd_mts64_probe, |
1042 | .remove = snd_mts64_remove, | 1042 | .remove = __devexit_p(snd_mts64_remove), |
1043 | .driver = { | 1043 | .driver = { |
1044 | .name = PLATFORM_DRIVER | 1044 | .name = PLATFORM_DRIVER |
1045 | } | 1045 | } |
@@ -1048,7 +1048,7 @@ static struct platform_driver snd_mts64_driver = { | |||
1048 | /********************************************************************* | 1048 | /********************************************************************* |
1049 | * module init stuff | 1049 | * module init stuff |
1050 | *********************************************************************/ | 1050 | *********************************************************************/ |
1051 | static void snd_mts64_unregister_all(void) | 1051 | static void __init_or_module snd_mts64_unregister_all(void) |
1052 | { | 1052 | { |
1053 | int i; | 1053 | int i; |
1054 | 1054 | ||
diff --git a/sound/drivers/portman2x4.c b/sound/drivers/portman2x4.c index 6c48772aaef..b43d4c96ed1 100644 --- a/sound/drivers/portman2x4.c +++ b/sound/drivers/portman2x4.c | |||
@@ -811,7 +811,7 @@ __err: | |||
811 | return err; | 811 | return err; |
812 | } | 812 | } |
813 | 813 | ||
814 | static int snd_portman_remove(struct platform_device *pdev) | 814 | static int __devexit snd_portman_remove(struct platform_device *pdev) |
815 | { | 815 | { |
816 | struct snd_card *card = platform_get_drvdata(pdev); | 816 | struct snd_card *card = platform_get_drvdata(pdev); |
817 | 817 | ||
@@ -824,7 +824,7 @@ static int snd_portman_remove(struct platform_device *pdev) | |||
824 | 824 | ||
825 | static struct platform_driver snd_portman_driver = { | 825 | static struct platform_driver snd_portman_driver = { |
826 | .probe = snd_portman_probe, | 826 | .probe = snd_portman_probe, |
827 | .remove = snd_portman_remove, | 827 | .remove = __dev_exit_p(snd_portman_remove), |
828 | .driver = { | 828 | .driver = { |
829 | .name = PLATFORM_DRIVER | 829 | .name = PLATFORM_DRIVER |
830 | } | 830 | } |
@@ -833,7 +833,7 @@ static struct platform_driver snd_portman_driver = { | |||
833 | /********************************************************************* | 833 | /********************************************************************* |
834 | * module init stuff | 834 | * module init stuff |
835 | *********************************************************************/ | 835 | *********************************************************************/ |
836 | static void snd_portman_unregister_all(void) | 836 | static void __init_or_module snd_portman_unregister_all(void) |
837 | { | 837 | { |
838 | int i; | 838 | int i; |
839 | 839 | ||
diff --git a/sound/drivers/serial-u16550.c b/sound/drivers/serial-u16550.c index 3a86a582072..838a4277929 100644 --- a/sound/drivers/serial-u16550.c +++ b/sound/drivers/serial-u16550.c | |||
@@ -327,7 +327,7 @@ static void snd_uart16550_buffer_timer(unsigned long data) | |||
327 | * return 0 if found | 327 | * return 0 if found |
328 | * return negative error if not found | 328 | * return negative error if not found |
329 | */ | 329 | */ |
330 | static int __init snd_uart16550_detect(struct snd_uart16550 *uart) | 330 | static int __devinit snd_uart16550_detect(struct snd_uart16550 *uart) |
331 | { | 331 | { |
332 | unsigned long io_base = uart->base; | 332 | unsigned long io_base = uart->base; |
333 | int ok; | 333 | int ok; |
@@ -781,7 +781,7 @@ static int snd_uart16550_dev_free(struct snd_device *device) | |||
781 | return snd_uart16550_free(uart); | 781 | return snd_uart16550_free(uart); |
782 | } | 782 | } |
783 | 783 | ||
784 | static int __init snd_uart16550_create(struct snd_card *card, | 784 | static int __devinit snd_uart16550_create(struct snd_card *card, |
785 | unsigned long iobase, | 785 | unsigned long iobase, |
786 | int irq, | 786 | int irq, |
787 | unsigned int speed, | 787 | unsigned int speed, |
@@ -860,7 +860,7 @@ static int __init snd_uart16550_create(struct snd_card *card, | |||
860 | return 0; | 860 | return 0; |
861 | } | 861 | } |
862 | 862 | ||
863 | static void __init snd_uart16550_substreams(struct snd_rawmidi_str *stream) | 863 | static void __devinit snd_uart16550_substreams(struct snd_rawmidi_str *stream) |
864 | { | 864 | { |
865 | struct snd_rawmidi_substream *substream; | 865 | struct snd_rawmidi_substream *substream; |
866 | 866 | ||
@@ -869,7 +869,7 @@ static void __init snd_uart16550_substreams(struct snd_rawmidi_str *stream) | |||
869 | } | 869 | } |
870 | } | 870 | } |
871 | 871 | ||
872 | static int __init snd_uart16550_rmidi(struct snd_uart16550 *uart, int device, | 872 | static int __devinit snd_uart16550_rmidi(struct snd_uart16550 *uart, int device, |
873 | int outs, int ins, | 873 | int outs, int ins, |
874 | struct snd_rawmidi **rmidi) | 874 | struct snd_rawmidi **rmidi) |
875 | { | 875 | { |
@@ -896,7 +896,7 @@ static int __init snd_uart16550_rmidi(struct snd_uart16550 *uart, int device, | |||
896 | return 0; | 896 | return 0; |
897 | } | 897 | } |
898 | 898 | ||
899 | static int __init snd_serial_probe(struct platform_device *devptr) | 899 | static int __devinit snd_serial_probe(struct platform_device *devptr) |
900 | { | 900 | { |
901 | struct snd_card *card; | 901 | struct snd_card *card; |
902 | struct snd_uart16550 *uart; | 902 | struct snd_uart16550 *uart; |
@@ -981,7 +981,7 @@ static int __init snd_serial_probe(struct platform_device *devptr) | |||
981 | return err; | 981 | return err; |
982 | } | 982 | } |
983 | 983 | ||
984 | static int snd_serial_remove(struct platform_device *devptr) | 984 | static int __devexit snd_serial_remove(struct platform_device *devptr) |
985 | { | 985 | { |
986 | snd_card_free(platform_get_drvdata(devptr)); | 986 | snd_card_free(platform_get_drvdata(devptr)); |
987 | platform_set_drvdata(devptr, NULL); | 987 | platform_set_drvdata(devptr, NULL); |
@@ -992,7 +992,7 @@ static int snd_serial_remove(struct platform_device *devptr) | |||
992 | 992 | ||
993 | static struct platform_driver snd_serial_driver = { | 993 | static struct platform_driver snd_serial_driver = { |
994 | .probe = snd_serial_probe, | 994 | .probe = snd_serial_probe, |
995 | .remove = snd_serial_remove, | 995 | .remove = __devexit_p( snd_serial_remove), |
996 | .driver = { | 996 | .driver = { |
997 | .name = SND_SERIAL_DRIVER | 997 | .name = SND_SERIAL_DRIVER |
998 | }, | 998 | }, |
diff --git a/sound/drivers/virmidi.c b/sound/drivers/virmidi.c index 59171f8200d..70e70baa3bc 100644 --- a/sound/drivers/virmidi.c +++ b/sound/drivers/virmidi.c | |||
@@ -85,7 +85,7 @@ struct snd_card_virmidi { | |||
85 | static struct platform_device *devices[SNDRV_CARDS]; | 85 | static struct platform_device *devices[SNDRV_CARDS]; |
86 | 86 | ||
87 | 87 | ||
88 | static int __init snd_virmidi_probe(struct platform_device *devptr) | 88 | static int __devinit snd_virmidi_probe(struct platform_device *devptr) |
89 | { | 89 | { |
90 | struct snd_card *card; | 90 | struct snd_card *card; |
91 | struct snd_card_virmidi *vmidi; | 91 | struct snd_card_virmidi *vmidi; |
@@ -129,7 +129,7 @@ static int __init snd_virmidi_probe(struct platform_device *devptr) | |||
129 | return err; | 129 | return err; |
130 | } | 130 | } |
131 | 131 | ||
132 | static int snd_virmidi_remove(struct platform_device *devptr) | 132 | static int __devexit snd_virmidi_remove(struct platform_device *devptr) |
133 | { | 133 | { |
134 | snd_card_free(platform_get_drvdata(devptr)); | 134 | snd_card_free(platform_get_drvdata(devptr)); |
135 | platform_set_drvdata(devptr, NULL); | 135 | platform_set_drvdata(devptr, NULL); |
@@ -140,7 +140,7 @@ static int snd_virmidi_remove(struct platform_device *devptr) | |||
140 | 140 | ||
141 | static struct platform_driver snd_virmidi_driver = { | 141 | static struct platform_driver snd_virmidi_driver = { |
142 | .probe = snd_virmidi_probe, | 142 | .probe = snd_virmidi_probe, |
143 | .remove = snd_virmidi_remove, | 143 | .remove = __devexit_p(snd_virmidi_remove), |
144 | .driver = { | 144 | .driver = { |
145 | .name = SND_VIRMIDI_DRIVER | 145 | .name = SND_VIRMIDI_DRIVER |
146 | }, | 146 | }, |
diff --git a/sound/isa/ad1848/ad1848.c b/sound/isa/ad1848/ad1848.c index 99908e44124..74e501dea8b 100644 --- a/sound/isa/ad1848/ad1848.c +++ b/sound/isa/ad1848/ad1848.c | |||
@@ -65,7 +65,7 @@ MODULE_PARM_DESC(thinkpad, "Enable only for the onboard CS4248 of IBM Thinkpad 3 | |||
65 | static struct platform_device *devices[SNDRV_CARDS]; | 65 | static struct platform_device *devices[SNDRV_CARDS]; |
66 | 66 | ||
67 | 67 | ||
68 | static int __init snd_ad1848_probe(struct platform_device *pdev) | 68 | static int __devinit snd_ad1848_probe(struct platform_device *pdev) |
69 | { | 69 | { |
70 | int dev = pdev->id; | 70 | int dev = pdev->id; |
71 | struct snd_card *card; | 71 | struct snd_card *card; |
diff --git a/sound/isa/cmi8330.c b/sound/isa/cmi8330.c index d1f6dfcec46..c09a8009d2f 100644 --- a/sound/isa/cmi8330.c +++ b/sound/isa/cmi8330.c | |||
@@ -574,7 +574,7 @@ static int __devinit snd_cmi8330_nonpnp_probe(struct platform_device *pdev) | |||
574 | return 0; | 574 | return 0; |
575 | } | 575 | } |
576 | 576 | ||
577 | static int snd_cmi8330_nonpnp_remove(struct platform_device *devptr) | 577 | static int __devexit snd_cmi8330_nonpnp_remove(struct platform_device *devptr) |
578 | { | 578 | { |
579 | snd_card_free(platform_get_drvdata(devptr)); | 579 | snd_card_free(platform_get_drvdata(devptr)); |
580 | platform_set_drvdata(devptr, NULL); | 580 | platform_set_drvdata(devptr, NULL); |
@@ -597,7 +597,7 @@ static int snd_cmi8330_nonpnp_resume(struct platform_device *dev) | |||
597 | 597 | ||
598 | static struct platform_driver snd_cmi8330_driver = { | 598 | static struct platform_driver snd_cmi8330_driver = { |
599 | .probe = snd_cmi8330_nonpnp_probe, | 599 | .probe = snd_cmi8330_nonpnp_probe, |
600 | .remove = snd_cmi8330_nonpnp_remove, | 600 | .remove = __devexit_p(snd_cmi8330_nonpnp_remove), |
601 | #ifdef CONFIG_PM | 601 | #ifdef CONFIG_PM |
602 | .suspend = snd_cmi8330_nonpnp_suspend, | 602 | .suspend = snd_cmi8330_nonpnp_suspend, |
603 | .resume = snd_cmi8330_nonpnp_resume, | 603 | .resume = snd_cmi8330_nonpnp_resume, |
diff --git a/sound/isa/es1688/es1688.c b/sound/isa/es1688/es1688.c index 7f29f56e405..65f97ff4eef 100644 --- a/sound/isa/es1688/es1688.c +++ b/sound/isa/es1688/es1688.c | |||
@@ -73,7 +73,7 @@ static struct platform_device *devices[SNDRV_CARDS]; | |||
73 | 73 | ||
74 | #define PFX "es1688: " | 74 | #define PFX "es1688: " |
75 | 75 | ||
76 | static int __init snd_es1688_probe(struct platform_device *pdev) | 76 | static int __devinit snd_es1688_probe(struct platform_device *pdev) |
77 | { | 77 | { |
78 | int dev = pdev->id; | 78 | int dev = pdev->id; |
79 | static int possible_irqs[] = {5, 9, 10, 7, -1}; | 79 | static int possible_irqs[] = {5, 9, 10, 7, -1}; |
@@ -171,7 +171,7 @@ static int __init snd_es1688_probe(struct platform_device *pdev) | |||
171 | return err; | 171 | return err; |
172 | } | 172 | } |
173 | 173 | ||
174 | static int snd_es1688_remove(struct platform_device *devptr) | 174 | static int __devexit snd_es1688_remove(struct platform_device *devptr) |
175 | { | 175 | { |
176 | snd_card_free(platform_get_drvdata(devptr)); | 176 | snd_card_free(platform_get_drvdata(devptr)); |
177 | platform_set_drvdata(devptr, NULL); | 177 | platform_set_drvdata(devptr, NULL); |
@@ -182,7 +182,7 @@ static int snd_es1688_remove(struct platform_device *devptr) | |||
182 | 182 | ||
183 | static struct platform_driver snd_es1688_driver = { | 183 | static struct platform_driver snd_es1688_driver = { |
184 | .probe = snd_es1688_probe, | 184 | .probe = snd_es1688_probe, |
185 | .remove = snd_es1688_remove, | 185 | .remove = __devexit_p(snd_es1688_remove), |
186 | /* FIXME: suspend/resume */ | 186 | /* FIXME: suspend/resume */ |
187 | .driver = { | 187 | .driver = { |
188 | .name = ES1688_DRIVER | 188 | .name = ES1688_DRIVER |
diff --git a/sound/isa/gus/gusclassic.c b/sound/isa/gus/gusclassic.c index 37057a37dc3..0395e2e0dd0 100644 --- a/sound/isa/gus/gusclassic.c +++ b/sound/isa/gus/gusclassic.c | |||
@@ -76,7 +76,7 @@ static struct platform_device *devices[SNDRV_CARDS]; | |||
76 | 76 | ||
77 | #define PFX "gusclassic: " | 77 | #define PFX "gusclassic: " |
78 | 78 | ||
79 | static int __init snd_gusclassic_detect(struct snd_gus_card * gus) | 79 | static int __devinit snd_gusclassic_detect(struct snd_gus_card * gus) |
80 | { | 80 | { |
81 | unsigned char d; | 81 | unsigned char d; |
82 | 82 | ||
@@ -95,7 +95,7 @@ static int __init snd_gusclassic_detect(struct snd_gus_card * gus) | |||
95 | return 0; | 95 | return 0; |
96 | } | 96 | } |
97 | 97 | ||
98 | static void __init snd_gusclassic_init(int dev, struct snd_gus_card * gus) | 98 | static void __devinit snd_gusclassic_init(int dev, struct snd_gus_card * gus) |
99 | { | 99 | { |
100 | gus->equal_irq = 0; | 100 | gus->equal_irq = 0; |
101 | gus->codec_flag = 0; | 101 | gus->codec_flag = 0; |
@@ -103,7 +103,7 @@ static void __init snd_gusclassic_init(int dev, struct snd_gus_card * gus) | |||
103 | gus->joystick_dac = joystick_dac[dev]; | 103 | gus->joystick_dac = joystick_dac[dev]; |
104 | } | 104 | } |
105 | 105 | ||
106 | static int __init snd_gusclassic_probe(struct platform_device *pdev) | 106 | static int __devinit snd_gusclassic_probe(struct platform_device *pdev) |
107 | { | 107 | { |
108 | int dev = pdev->id; | 108 | int dev = pdev->id; |
109 | static int possible_irqs[] = {5, 11, 12, 9, 7, 15, 3, 4, -1}; | 109 | static int possible_irqs[] = {5, 11, 12, 9, 7, 15, 3, 4, -1}; |
@@ -211,7 +211,7 @@ static int __init snd_gusclassic_probe(struct platform_device *pdev) | |||
211 | return err; | 211 | return err; |
212 | } | 212 | } |
213 | 213 | ||
214 | static int snd_gusclassic_remove(struct platform_device *devptr) | 214 | static int __devexit snd_gusclassic_remove(struct platform_device *devptr) |
215 | { | 215 | { |
216 | snd_card_free(platform_get_drvdata(devptr)); | 216 | snd_card_free(platform_get_drvdata(devptr)); |
217 | platform_set_drvdata(devptr, NULL); | 217 | platform_set_drvdata(devptr, NULL); |
@@ -222,7 +222,7 @@ static int snd_gusclassic_remove(struct platform_device *devptr) | |||
222 | 222 | ||
223 | static struct platform_driver snd_gusclassic_driver = { | 223 | static struct platform_driver snd_gusclassic_driver = { |
224 | .probe = snd_gusclassic_probe, | 224 | .probe = snd_gusclassic_probe, |
225 | .remove = snd_gusclassic_remove, | 225 | .remove = __devexit_p(snd_gusclassic_remove), |
226 | /* FIXME: suspend/resume */ | 226 | /* FIXME: suspend/resume */ |
227 | .driver = { | 227 | .driver = { |
228 | .name = GUSCLASSIC_DRIVER | 228 | .name = GUSCLASSIC_DRIVER |
diff --git a/sound/isa/gus/gusextreme.c b/sound/isa/gus/gusextreme.c index 532c56e35ca..4f55fc3e66c 100644 --- a/sound/isa/gus/gusextreme.c +++ b/sound/isa/gus/gusextreme.c | |||
@@ -92,7 +92,7 @@ static struct platform_device *devices[SNDRV_CARDS]; | |||
92 | 92 | ||
93 | #define PFX "gusextreme: " | 93 | #define PFX "gusextreme: " |
94 | 94 | ||
95 | static int __init snd_gusextreme_detect(int dev, | 95 | static int __devinit snd_gusextreme_detect(int dev, |
96 | struct snd_card *card, | 96 | struct snd_card *card, |
97 | struct snd_gus_card * gus, | 97 | struct snd_gus_card * gus, |
98 | struct snd_es1688 *es1688) | 98 | struct snd_es1688 *es1688) |
@@ -142,12 +142,12 @@ static int __init snd_gusextreme_detect(int dev, | |||
142 | return 0; | 142 | return 0; |
143 | } | 143 | } |
144 | 144 | ||
145 | static void __init snd_gusextreme_init(int dev, struct snd_gus_card * gus) | 145 | static void __devinit snd_gusextreme_init(int dev, struct snd_gus_card * gus) |
146 | { | 146 | { |
147 | gus->joystick_dac = joystick_dac[dev]; | 147 | gus->joystick_dac = joystick_dac[dev]; |
148 | } | 148 | } |
149 | 149 | ||
150 | static int __init snd_gusextreme_mixer(struct snd_es1688 *chip) | 150 | static int __devinit snd_gusextreme_mixer(struct snd_es1688 *chip) |
151 | { | 151 | { |
152 | struct snd_card *card = chip->card; | 152 | struct snd_card *card = chip->card; |
153 | struct snd_ctl_elem_id id1, id2; | 153 | struct snd_ctl_elem_id id1, id2; |
@@ -169,7 +169,7 @@ static int __init snd_gusextreme_mixer(struct snd_es1688 *chip) | |||
169 | return 0; | 169 | return 0; |
170 | } | 170 | } |
171 | 171 | ||
172 | static int __init snd_gusextreme_probe(struct platform_device *pdev) | 172 | static int __devinit snd_gusextreme_probe(struct platform_device *pdev) |
173 | { | 173 | { |
174 | int dev = pdev->id; | 174 | int dev = pdev->id; |
175 | static int possible_ess_irqs[] = {5, 9, 10, 7, -1}; | 175 | static int possible_ess_irqs[] = {5, 9, 10, 7, -1}; |
@@ -321,7 +321,7 @@ static int __init snd_gusextreme_probe(struct platform_device *pdev) | |||
321 | return err; | 321 | return err; |
322 | } | 322 | } |
323 | 323 | ||
324 | static int snd_gusextreme_remove(struct platform_device *devptr) | 324 | static int __devexit snd_gusextreme_remove(struct platform_device *devptr) |
325 | { | 325 | { |
326 | snd_card_free(platform_get_drvdata(devptr)); | 326 | snd_card_free(platform_get_drvdata(devptr)); |
327 | platform_set_drvdata(devptr, NULL); | 327 | platform_set_drvdata(devptr, NULL); |
@@ -332,7 +332,7 @@ static int snd_gusextreme_remove(struct platform_device *devptr) | |||
332 | 332 | ||
333 | static struct platform_driver snd_gusextreme_driver = { | 333 | static struct platform_driver snd_gusextreme_driver = { |
334 | .probe = snd_gusextreme_probe, | 334 | .probe = snd_gusextreme_probe, |
335 | .remove = snd_gusextreme_remove, | 335 | .remove = __devexit_p(snd_gusextreme_remove), |
336 | /* FIXME: suspend/resume */ | 336 | /* FIXME: suspend/resume */ |
337 | .driver = { | 337 | .driver = { |
338 | .name = GUSEXTREME_DRIVER | 338 | .name = GUSEXTREME_DRIVER |
diff --git a/sound/isa/gus/gusmax.c b/sound/isa/gus/gusmax.c index c1c69e3cbfd..d1ad90ca035 100644 --- a/sound/isa/gus/gusmax.c +++ b/sound/isa/gus/gusmax.c | |||
@@ -85,7 +85,7 @@ struct snd_gusmax { | |||
85 | 85 | ||
86 | #define PFX "gusmax: " | 86 | #define PFX "gusmax: " |
87 | 87 | ||
88 | static int __init snd_gusmax_detect(struct snd_gus_card * gus) | 88 | static int __devinit snd_gusmax_detect(struct snd_gus_card * gus) |
89 | { | 89 | { |
90 | unsigned char d; | 90 | unsigned char d; |
91 | 91 | ||
@@ -127,7 +127,8 @@ static irqreturn_t snd_gusmax_interrupt(int irq, void *dev_id) | |||
127 | return IRQ_RETVAL(handled); | 127 | return IRQ_RETVAL(handled); |
128 | } | 128 | } |
129 | 129 | ||
130 | static void __init snd_gusmax_init(int dev, struct snd_card *card, struct snd_gus_card * gus) | 130 | static void __devinit snd_gusmax_init(int dev, struct snd_card *card, |
131 | struct snd_gus_card * gus) | ||
131 | { | 132 | { |
132 | gus->equal_irq = 1; | 133 | gus->equal_irq = 1; |
133 | gus->codec_flag = 1; | 134 | gus->codec_flag = 1; |
@@ -145,7 +146,7 @@ static void __init snd_gusmax_init(int dev, struct snd_card *card, struct snd_gu | |||
145 | #define CS4231_PRIVATE( left, right, shift, mute ) \ | 146 | #define CS4231_PRIVATE( left, right, shift, mute ) \ |
146 | ((left << 24)|(right << 16)|(shift<<8)|mute) | 147 | ((left << 24)|(right << 16)|(shift<<8)|mute) |
147 | 148 | ||
148 | static int __init snd_gusmax_mixer(struct snd_cs4231 *chip) | 149 | static int __devinit snd_gusmax_mixer(struct snd_cs4231 *chip) |
149 | { | 150 | { |
150 | struct snd_card *card = chip->card; | 151 | struct snd_card *card = chip->card; |
151 | struct snd_ctl_elem_id id1, id2; | 152 | struct snd_ctl_elem_id id1, id2; |
@@ -204,7 +205,7 @@ static void snd_gusmax_free(struct snd_card *card) | |||
204 | free_irq(maxcard->irq, (void *)maxcard); | 205 | free_irq(maxcard->irq, (void *)maxcard); |
205 | } | 206 | } |
206 | 207 | ||
207 | static int __init snd_gusmax_probe(struct platform_device *pdev) | 208 | static int __devinit snd_gusmax_probe(struct platform_device *pdev) |
208 | { | 209 | { |
209 | int dev = pdev->id; | 210 | int dev = pdev->id; |
210 | static int possible_irqs[] = {5, 11, 12, 9, 7, 15, 3, -1}; | 211 | static int possible_irqs[] = {5, 11, 12, 9, 7, 15, 3, -1}; |
@@ -348,7 +349,7 @@ static int __init snd_gusmax_probe(struct platform_device *pdev) | |||
348 | return err; | 349 | return err; |
349 | } | 350 | } |
350 | 351 | ||
351 | static int snd_gusmax_remove(struct platform_device *devptr) | 352 | static int __devexit snd_gusmax_remove(struct platform_device *devptr) |
352 | { | 353 | { |
353 | snd_card_free(platform_get_drvdata(devptr)); | 354 | snd_card_free(platform_get_drvdata(devptr)); |
354 | platform_set_drvdata(devptr, NULL); | 355 | platform_set_drvdata(devptr, NULL); |
@@ -359,7 +360,7 @@ static int snd_gusmax_remove(struct platform_device *devptr) | |||
359 | 360 | ||
360 | static struct platform_driver snd_gusmax_driver = { | 361 | static struct platform_driver snd_gusmax_driver = { |
361 | .probe = snd_gusmax_probe, | 362 | .probe = snd_gusmax_probe, |
362 | .remove = snd_gusmax_remove, | 363 | .remove = __devexit_p(snd_gusmax_remove), |
363 | /* FIXME: suspend/resume */ | 364 | /* FIXME: suspend/resume */ |
364 | .driver = { | 365 | .driver = { |
365 | .name = GUSMAX_DRIVER | 366 | .name = GUSMAX_DRIVER |
diff --git a/sound/isa/opl3sa2.c b/sound/isa/opl3sa2.c index 1e30713d2ca..f3db686b1c0 100644 --- a/sound/isa/opl3sa2.c +++ b/sound/isa/opl3sa2.c | |||
@@ -919,7 +919,7 @@ static int __devinit snd_opl3sa2_nonpnp_probe(struct platform_device *pdev) | |||
919 | return 0; | 919 | return 0; |
920 | } | 920 | } |
921 | 921 | ||
922 | static int snd_opl3sa2_nonpnp_remove(struct platform_device *devptr) | 922 | static int __devexit snd_opl3sa2_nonpnp_remove(struct platform_device *devptr) |
923 | { | 923 | { |
924 | snd_card_free(platform_get_drvdata(devptr)); | 924 | snd_card_free(platform_get_drvdata(devptr)); |
925 | platform_set_drvdata(devptr, NULL); | 925 | platform_set_drvdata(devptr, NULL); |
@@ -942,7 +942,7 @@ static int snd_opl3sa2_nonpnp_resume(struct platform_device *dev) | |||
942 | 942 | ||
943 | static struct platform_driver snd_opl3sa2_nonpnp_driver = { | 943 | static struct platform_driver snd_opl3sa2_nonpnp_driver = { |
944 | .probe = snd_opl3sa2_nonpnp_probe, | 944 | .probe = snd_opl3sa2_nonpnp_probe, |
945 | .remove = snd_opl3sa2_nonpnp_remove, | 945 | .remove = __devexit( snd_opl3sa2_nonpnp_remove), |
946 | #ifdef CONFIG_PM | 946 | #ifdef CONFIG_PM |
947 | .suspend = snd_opl3sa2_nonpnp_suspend, | 947 | .suspend = snd_opl3sa2_nonpnp_suspend, |
948 | .resume = snd_opl3sa2_nonpnp_resume, | 948 | .resume = snd_opl3sa2_nonpnp_resume, |
diff --git a/sound/isa/sb/sb8.c b/sound/isa/sb/sb8.c index 268ebd34703..be1e83e6dea 100644 --- a/sound/isa/sb/sb8.c +++ b/sound/isa/sb/sb8.c | |||
@@ -83,7 +83,7 @@ static void snd_sb8_free(struct snd_card *card) | |||
83 | release_and_free_resource(acard->fm_res); | 83 | release_and_free_resource(acard->fm_res); |
84 | } | 84 | } |
85 | 85 | ||
86 | static int __init snd_sb8_probe(struct platform_device *pdev) | 86 | static int __devinit snd_sb8_probe(struct platform_device *pdev) |
87 | { | 87 | { |
88 | int dev = pdev->id; | 88 | int dev = pdev->id; |
89 | struct snd_sb *chip; | 89 | struct snd_sb *chip; |
@@ -193,7 +193,7 @@ static int __init snd_sb8_probe(struct platform_device *pdev) | |||
193 | return err; | 193 | return err; |
194 | } | 194 | } |
195 | 195 | ||
196 | static int snd_sb8_remove(struct platform_device *pdev) | 196 | static int __devexit snd_sb8_remove(struct platform_device *pdev) |
197 | { | 197 | { |
198 | snd_card_free(platform_get_drvdata(pdev)); | 198 | snd_card_free(platform_get_drvdata(pdev)); |
199 | platform_set_drvdata(pdev, NULL); | 199 | platform_set_drvdata(pdev, NULL); |
@@ -230,7 +230,7 @@ static int snd_sb8_resume(struct platform_device *dev) | |||
230 | 230 | ||
231 | static struct platform_driver snd_sb8_driver = { | 231 | static struct platform_driver snd_sb8_driver = { |
232 | .probe = snd_sb8_probe, | 232 | .probe = snd_sb8_probe, |
233 | .remove = snd_sb8_remove, | 233 | .remove = __devexit_p(snd_sb8_remove), |
234 | #ifdef CONFIG_PM | 234 | #ifdef CONFIG_PM |
235 | .suspend = snd_sb8_suspend, | 235 | .suspend = snd_sb8_suspend, |
236 | .resume = snd_sb8_resume, | 236 | .resume = snd_sb8_resume, |