diff options
Diffstat (limited to 'sound/isa/sscape.c')
-rw-r--r-- | sound/isa/sscape.c | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/sound/isa/sscape.c b/sound/isa/sscape.c index 8490f59709bb..42a009720b29 100644 --- a/sound/isa/sscape.c +++ b/sound/isa/sscape.c | |||
@@ -683,7 +683,7 @@ static struct snd_kcontrol_new midi_mixer_ctl = { | |||
683 | * These IRQs are encoded as bit patterns so that they can be | 683 | * These IRQs are encoded as bit patterns so that they can be |
684 | * written to the control registers. | 684 | * written to the control registers. |
685 | */ | 685 | */ |
686 | static unsigned __devinit get_irq_config(int sscape_type, int irq) | 686 | static unsigned get_irq_config(int sscape_type, int irq) |
687 | { | 687 | { |
688 | static const int valid_irq[] = { 9, 5, 7, 10 }; | 688 | static const int valid_irq[] = { 9, 5, 7, 10 }; |
689 | static const int old_irq[] = { 9, 7, 5, 15 }; | 689 | static const int old_irq[] = { 9, 7, 5, 15 }; |
@@ -706,7 +706,7 @@ static unsigned __devinit get_irq_config(int sscape_type, int irq) | |||
706 | * Perform certain arcane port-checks to see whether there | 706 | * Perform certain arcane port-checks to see whether there |
707 | * is a SoundScape board lurking behind the given ports. | 707 | * is a SoundScape board lurking behind the given ports. |
708 | */ | 708 | */ |
709 | static int __devinit detect_sscape(struct soundscape *s, long wss_io) | 709 | static int detect_sscape(struct soundscape *s, long wss_io) |
710 | { | 710 | { |
711 | unsigned long flags; | 711 | unsigned long flags; |
712 | unsigned d; | 712 | unsigned d; |
@@ -817,8 +817,8 @@ static int mpu401_open(struct snd_mpu401 *mpu) | |||
817 | /* | 817 | /* |
818 | * Initialse an MPU-401 subdevice for MIDI support on the SoundScape. | 818 | * Initialse an MPU-401 subdevice for MIDI support on the SoundScape. |
819 | */ | 819 | */ |
820 | static int __devinit create_mpu401(struct snd_card *card, int devnum, | 820 | static int create_mpu401(struct snd_card *card, int devnum, |
821 | unsigned long port, int irq) | 821 | unsigned long port, int irq) |
822 | { | 822 | { |
823 | struct soundscape *sscape = get_card_soundscape(card); | 823 | struct soundscape *sscape = get_card_soundscape(card); |
824 | struct snd_rawmidi *rawmidi; | 824 | struct snd_rawmidi *rawmidi; |
@@ -845,8 +845,8 @@ static int __devinit create_mpu401(struct snd_card *card, int devnum, | |||
845 | * try to support at least some of the extra bits by overriding | 845 | * try to support at least some of the extra bits by overriding |
846 | * some of the CS4231 callback. | 846 | * some of the CS4231 callback. |
847 | */ | 847 | */ |
848 | static int __devinit create_ad1845(struct snd_card *card, unsigned port, | 848 | static int create_ad1845(struct snd_card *card, unsigned port, |
849 | int irq, int dma1, int dma2) | 849 | int irq, int dma1, int dma2) |
850 | { | 850 | { |
851 | register struct soundscape *sscape = get_card_soundscape(card); | 851 | register struct soundscape *sscape = get_card_soundscape(card); |
852 | struct snd_wss *chip; | 852 | struct snd_wss *chip; |
@@ -937,7 +937,7 @@ _error: | |||
937 | * Create an ALSA soundcard entry for the SoundScape, using | 937 | * Create an ALSA soundcard entry for the SoundScape, using |
938 | * the given list of port, IRQ and DMA resources. | 938 | * the given list of port, IRQ and DMA resources. |
939 | */ | 939 | */ |
940 | static int __devinit create_sscape(int dev, struct snd_card *card) | 940 | static int create_sscape(int dev, struct snd_card *card) |
941 | { | 941 | { |
942 | struct soundscape *sscape = get_card_soundscape(card); | 942 | struct soundscape *sscape = get_card_soundscape(card); |
943 | unsigned dma_cfg; | 943 | unsigned dma_cfg; |
@@ -1143,7 +1143,7 @@ _release_region: | |||
1143 | } | 1143 | } |
1144 | 1144 | ||
1145 | 1145 | ||
1146 | static int __devinit snd_sscape_match(struct device *pdev, unsigned int i) | 1146 | static int snd_sscape_match(struct device *pdev, unsigned int i) |
1147 | { | 1147 | { |
1148 | /* | 1148 | /* |
1149 | * Make sure we were given ALL of the other parameters. | 1149 | * Make sure we were given ALL of the other parameters. |
@@ -1163,7 +1163,7 @@ static int __devinit snd_sscape_match(struct device *pdev, unsigned int i) | |||
1163 | return 1; | 1163 | return 1; |
1164 | } | 1164 | } |
1165 | 1165 | ||
1166 | static int __devinit snd_sscape_probe(struct device *pdev, unsigned int dev) | 1166 | static int snd_sscape_probe(struct device *pdev, unsigned int dev) |
1167 | { | 1167 | { |
1168 | struct snd_card *card; | 1168 | struct snd_card *card; |
1169 | struct soundscape *sscape; | 1169 | struct soundscape *sscape; |
@@ -1197,7 +1197,7 @@ _release_card: | |||
1197 | return ret; | 1197 | return ret; |
1198 | } | 1198 | } |
1199 | 1199 | ||
1200 | static int __devexit snd_sscape_remove(struct device *devptr, unsigned int dev) | 1200 | static int snd_sscape_remove(struct device *devptr, unsigned int dev) |
1201 | { | 1201 | { |
1202 | snd_card_free(dev_get_drvdata(devptr)); | 1202 | snd_card_free(dev_get_drvdata(devptr)); |
1203 | dev_set_drvdata(devptr, NULL); | 1203 | dev_set_drvdata(devptr, NULL); |
@@ -1209,7 +1209,7 @@ static int __devexit snd_sscape_remove(struct device *devptr, unsigned int dev) | |||
1209 | static struct isa_driver snd_sscape_driver = { | 1209 | static struct isa_driver snd_sscape_driver = { |
1210 | .match = snd_sscape_match, | 1210 | .match = snd_sscape_match, |
1211 | .probe = snd_sscape_probe, | 1211 | .probe = snd_sscape_probe, |
1212 | .remove = __devexit_p(snd_sscape_remove), | 1212 | .remove = snd_sscape_remove, |
1213 | /* FIXME: suspend/resume */ | 1213 | /* FIXME: suspend/resume */ |
1214 | .driver = { | 1214 | .driver = { |
1215 | .name = DEV_NAME | 1215 | .name = DEV_NAME |
@@ -1217,7 +1217,7 @@ static struct isa_driver snd_sscape_driver = { | |||
1217 | }; | 1217 | }; |
1218 | 1218 | ||
1219 | #ifdef CONFIG_PNP | 1219 | #ifdef CONFIG_PNP |
1220 | static inline int __devinit get_next_autoindex(int i) | 1220 | static inline int get_next_autoindex(int i) |
1221 | { | 1221 | { |
1222 | while (i < SNDRV_CARDS && port[i] != SNDRV_AUTO_PORT) | 1222 | while (i < SNDRV_CARDS && port[i] != SNDRV_AUTO_PORT) |
1223 | ++i; | 1223 | ++i; |
@@ -1225,8 +1225,8 @@ static inline int __devinit get_next_autoindex(int i) | |||
1225 | } | 1225 | } |
1226 | 1226 | ||
1227 | 1227 | ||
1228 | static int __devinit sscape_pnp_detect(struct pnp_card_link *pcard, | 1228 | static int sscape_pnp_detect(struct pnp_card_link *pcard, |
1229 | const struct pnp_card_device_id *pid) | 1229 | const struct pnp_card_device_id *pid) |
1230 | { | 1230 | { |
1231 | static int idx = 0; | 1231 | static int idx = 0; |
1232 | struct pnp_dev *dev; | 1232 | struct pnp_dev *dev; |
@@ -1310,7 +1310,7 @@ _release_card: | |||
1310 | return ret; | 1310 | return ret; |
1311 | } | 1311 | } |
1312 | 1312 | ||
1313 | static void __devexit sscape_pnp_remove(struct pnp_card_link * pcard) | 1313 | static void sscape_pnp_remove(struct pnp_card_link *pcard) |
1314 | { | 1314 | { |
1315 | snd_card_free(pnp_get_card_drvdata(pcard)); | 1315 | snd_card_free(pnp_get_card_drvdata(pcard)); |
1316 | pnp_set_card_drvdata(pcard, NULL); | 1316 | pnp_set_card_drvdata(pcard, NULL); |
@@ -1321,7 +1321,7 @@ static struct pnp_card_driver sscape_pnpc_driver = { | |||
1321 | .name = "sscape", | 1321 | .name = "sscape", |
1322 | .id_table = sscape_pnpids, | 1322 | .id_table = sscape_pnpids, |
1323 | .probe = sscape_pnp_detect, | 1323 | .probe = sscape_pnp_detect, |
1324 | .remove = __devexit_p(sscape_pnp_remove), | 1324 | .remove = sscape_pnp_remove, |
1325 | }; | 1325 | }; |
1326 | 1326 | ||
1327 | #endif /* CONFIG_PNP */ | 1327 | #endif /* CONFIG_PNP */ |