diff options
Diffstat (limited to 'sound/isa/gus/interwave.c')
-rw-r--r-- | sound/isa/gus/interwave.c | 54 |
1 files changed, 27 insertions, 27 deletions
diff --git a/sound/isa/gus/interwave.c b/sound/isa/gus/interwave.c index 3fc8b66fd167..78bc5744e89a 100644 --- a/sound/isa/gus/interwave.c +++ b/sound/isa/gus/interwave.c | |||
@@ -207,9 +207,9 @@ static struct snd_i2c_bit_ops snd_interwave_i2c_bit_ops = { | |||
207 | .getdata = snd_interwave_i2c_getdataline, | 207 | .getdata = snd_interwave_i2c_getdataline, |
208 | }; | 208 | }; |
209 | 209 | ||
210 | static int __devinit snd_interwave_detect_stb(struct snd_interwave *iwcard, | 210 | static int snd_interwave_detect_stb(struct snd_interwave *iwcard, |
211 | struct snd_gus_card * gus, int dev, | 211 | struct snd_gus_card *gus, int dev, |
212 | struct snd_i2c_bus **rbus) | 212 | struct snd_i2c_bus **rbus) |
213 | { | 213 | { |
214 | unsigned long port; | 214 | unsigned long port; |
215 | struct snd_i2c_bus *bus; | 215 | struct snd_i2c_bus *bus; |
@@ -249,11 +249,11 @@ static int __devinit snd_interwave_detect_stb(struct snd_interwave *iwcard, | |||
249 | } | 249 | } |
250 | #endif | 250 | #endif |
251 | 251 | ||
252 | static int __devinit snd_interwave_detect(struct snd_interwave *iwcard, | 252 | static int snd_interwave_detect(struct snd_interwave *iwcard, |
253 | struct snd_gus_card * gus, | 253 | struct snd_gus_card *gus, |
254 | int dev | 254 | int dev |
255 | #ifdef SNDRV_STB | 255 | #ifdef SNDRV_STB |
256 | , struct snd_i2c_bus **rbus | 256 | , struct snd_i2c_bus **rbus |
257 | #endif | 257 | #endif |
258 | ) | 258 | ) |
259 | { | 259 | { |
@@ -318,7 +318,7 @@ static irqreturn_t snd_interwave_interrupt(int irq, void *dev_id) | |||
318 | return IRQ_RETVAL(handled); | 318 | return IRQ_RETVAL(handled); |
319 | } | 319 | } |
320 | 320 | ||
321 | static void __devinit snd_interwave_reset(struct snd_gus_card * gus) | 321 | static void snd_interwave_reset(struct snd_gus_card *gus) |
322 | { | 322 | { |
323 | snd_gf1_write8(gus, SNDRV_GF1_GB_RESET, 0x00); | 323 | snd_gf1_write8(gus, SNDRV_GF1_GB_RESET, 0x00); |
324 | udelay(160); | 324 | udelay(160); |
@@ -326,7 +326,7 @@ static void __devinit snd_interwave_reset(struct snd_gus_card * gus) | |||
326 | udelay(160); | 326 | udelay(160); |
327 | } | 327 | } |
328 | 328 | ||
329 | static void __devinit snd_interwave_bank_sizes(struct snd_gus_card * gus, int *sizes) | 329 | static void snd_interwave_bank_sizes(struct snd_gus_card *gus, int *sizes) |
330 | { | 330 | { |
331 | unsigned int idx; | 331 | unsigned int idx; |
332 | unsigned int local; | 332 | unsigned int local; |
@@ -377,7 +377,7 @@ struct rom_hdr { | |||
377 | /* 511 */ unsigned char csum; | 377 | /* 511 */ unsigned char csum; |
378 | }; | 378 | }; |
379 | 379 | ||
380 | static void __devinit snd_interwave_detect_memory(struct snd_gus_card * gus) | 380 | static void snd_interwave_detect_memory(struct snd_gus_card *gus) |
381 | { | 381 | { |
382 | static unsigned int lmc[13] = | 382 | static unsigned int lmc[13] = |
383 | { | 383 | { |
@@ -475,7 +475,7 @@ static void __devinit snd_interwave_detect_memory(struct snd_gus_card * gus) | |||
475 | snd_interwave_reset(gus); | 475 | snd_interwave_reset(gus); |
476 | } | 476 | } |
477 | 477 | ||
478 | static void __devinit snd_interwave_init(int dev, struct snd_gus_card * gus) | 478 | static void snd_interwave_init(int dev, struct snd_gus_card *gus) |
479 | { | 479 | { |
480 | unsigned long flags; | 480 | unsigned long flags; |
481 | 481 | ||
@@ -508,7 +508,7 @@ WSS_DOUBLE("Mic Playback Volume", 0, | |||
508 | CS4231_LEFT_MIC_INPUT, CS4231_RIGHT_MIC_INPUT, 0, 0, 31, 1) | 508 | CS4231_LEFT_MIC_INPUT, CS4231_RIGHT_MIC_INPUT, 0, 0, 31, 1) |
509 | }; | 509 | }; |
510 | 510 | ||
511 | static int __devinit snd_interwave_mixer(struct snd_wss *chip) | 511 | static int snd_interwave_mixer(struct snd_wss *chip) |
512 | { | 512 | { |
513 | struct snd_card *card = chip->card; | 513 | struct snd_card *card = chip->card; |
514 | struct snd_ctl_elem_id id1, id2; | 514 | struct snd_ctl_elem_id id1, id2; |
@@ -558,9 +558,9 @@ static int __devinit snd_interwave_mixer(struct snd_wss *chip) | |||
558 | 558 | ||
559 | #ifdef CONFIG_PNP | 559 | #ifdef CONFIG_PNP |
560 | 560 | ||
561 | static int __devinit snd_interwave_pnp(int dev, struct snd_interwave *iwcard, | 561 | static int snd_interwave_pnp(int dev, struct snd_interwave *iwcard, |
562 | struct pnp_card_link *card, | 562 | struct pnp_card_link *card, |
563 | const struct pnp_card_device_id *id) | 563 | const struct pnp_card_device_id *id) |
564 | { | 564 | { |
565 | struct pnp_dev *pdev; | 565 | struct pnp_dev *pdev; |
566 | int err; | 566 | int err; |
@@ -644,7 +644,7 @@ static int snd_interwave_card_new(int dev, struct snd_card **cardp) | |||
644 | return 0; | 644 | return 0; |
645 | } | 645 | } |
646 | 646 | ||
647 | static int __devinit snd_interwave_probe(struct snd_card *card, int dev) | 647 | static int snd_interwave_probe(struct snd_card *card, int dev) |
648 | { | 648 | { |
649 | int xirq, xdma1, xdma2; | 649 | int xirq, xdma1, xdma2; |
650 | struct snd_interwave *iwcard = card->private_data; | 650 | struct snd_interwave *iwcard = card->private_data; |
@@ -775,7 +775,7 @@ static int __devinit snd_interwave_probe(struct snd_card *card, int dev) | |||
775 | return 0; | 775 | return 0; |
776 | } | 776 | } |
777 | 777 | ||
778 | static int __devinit snd_interwave_isa_probe1(int dev, struct device *devptr) | 778 | static int snd_interwave_isa_probe1(int dev, struct device *devptr) |
779 | { | 779 | { |
780 | struct snd_card *card; | 780 | struct snd_card *card; |
781 | int err; | 781 | int err; |
@@ -793,8 +793,8 @@ static int __devinit snd_interwave_isa_probe1(int dev, struct device *devptr) | |||
793 | return 0; | 793 | return 0; |
794 | } | 794 | } |
795 | 795 | ||
796 | static int __devinit snd_interwave_isa_match(struct device *pdev, | 796 | static int snd_interwave_isa_match(struct device *pdev, |
797 | unsigned int dev) | 797 | unsigned int dev) |
798 | { | 798 | { |
799 | if (!enable[dev]) | 799 | if (!enable[dev]) |
800 | return 0; | 800 | return 0; |
@@ -805,8 +805,8 @@ static int __devinit snd_interwave_isa_match(struct device *pdev, | |||
805 | return 1; | 805 | return 1; |
806 | } | 806 | } |
807 | 807 | ||
808 | static int __devinit snd_interwave_isa_probe(struct device *pdev, | 808 | static int snd_interwave_isa_probe(struct device *pdev, |
809 | unsigned int dev) | 809 | unsigned int dev) |
810 | { | 810 | { |
811 | int err; | 811 | int err; |
812 | static int possible_irqs[] = {5, 11, 12, 9, 7, 15, 3, -1}; | 812 | static int possible_irqs[] = {5, 11, 12, 9, 7, 15, 3, -1}; |
@@ -846,7 +846,7 @@ static int __devinit snd_interwave_isa_probe(struct device *pdev, | |||
846 | } | 846 | } |
847 | } | 847 | } |
848 | 848 | ||
849 | static int __devexit snd_interwave_isa_remove(struct device *devptr, unsigned int dev) | 849 | static int snd_interwave_isa_remove(struct device *devptr, unsigned int dev) |
850 | { | 850 | { |
851 | snd_card_free(dev_get_drvdata(devptr)); | 851 | snd_card_free(dev_get_drvdata(devptr)); |
852 | dev_set_drvdata(devptr, NULL); | 852 | dev_set_drvdata(devptr, NULL); |
@@ -856,7 +856,7 @@ static int __devexit snd_interwave_isa_remove(struct device *devptr, unsigned in | |||
856 | static struct isa_driver snd_interwave_driver = { | 856 | static struct isa_driver snd_interwave_driver = { |
857 | .match = snd_interwave_isa_match, | 857 | .match = snd_interwave_isa_match, |
858 | .probe = snd_interwave_isa_probe, | 858 | .probe = snd_interwave_isa_probe, |
859 | .remove = __devexit_p(snd_interwave_isa_remove), | 859 | .remove = snd_interwave_isa_remove, |
860 | /* FIXME: suspend,resume */ | 860 | /* FIXME: suspend,resume */ |
861 | .driver = { | 861 | .driver = { |
862 | .name = INTERWAVE_DRIVER | 862 | .name = INTERWAVE_DRIVER |
@@ -864,8 +864,8 @@ static struct isa_driver snd_interwave_driver = { | |||
864 | }; | 864 | }; |
865 | 865 | ||
866 | #ifdef CONFIG_PNP | 866 | #ifdef CONFIG_PNP |
867 | static int __devinit snd_interwave_pnp_detect(struct pnp_card_link *pcard, | 867 | static int snd_interwave_pnp_detect(struct pnp_card_link *pcard, |
868 | const struct pnp_card_device_id *pid) | 868 | const struct pnp_card_device_id *pid) |
869 | { | 869 | { |
870 | static int dev; | 870 | static int dev; |
871 | struct snd_card *card; | 871 | struct snd_card *card; |
@@ -896,7 +896,7 @@ static int __devinit snd_interwave_pnp_detect(struct pnp_card_link *pcard, | |||
896 | return 0; | 896 | return 0; |
897 | } | 897 | } |
898 | 898 | ||
899 | static void __devexit snd_interwave_pnp_remove(struct pnp_card_link * pcard) | 899 | static void snd_interwave_pnp_remove(struct pnp_card_link *pcard) |
900 | { | 900 | { |
901 | snd_card_free(pnp_get_card_drvdata(pcard)); | 901 | snd_card_free(pnp_get_card_drvdata(pcard)); |
902 | pnp_set_card_drvdata(pcard, NULL); | 902 | pnp_set_card_drvdata(pcard, NULL); |
@@ -907,7 +907,7 @@ static struct pnp_card_driver interwave_pnpc_driver = { | |||
907 | .name = INTERWAVE_PNP_DRIVER, | 907 | .name = INTERWAVE_PNP_DRIVER, |
908 | .id_table = snd_interwave_pnpids, | 908 | .id_table = snd_interwave_pnpids, |
909 | .probe = snd_interwave_pnp_detect, | 909 | .probe = snd_interwave_pnp_detect, |
910 | .remove = __devexit_p(snd_interwave_pnp_remove), | 910 | .remove = snd_interwave_pnp_remove, |
911 | /* FIXME: suspend,resume */ | 911 | /* FIXME: suspend,resume */ |
912 | }; | 912 | }; |
913 | 913 | ||