diff options
Diffstat (limited to 'sound/isa/wavefront/wavefront.c')
-rw-r--r-- | sound/isa/wavefront/wavefront.c | 53 |
1 files changed, 25 insertions, 28 deletions
diff --git a/sound/isa/wavefront/wavefront.c b/sound/isa/wavefront/wavefront.c index e0a73271cb9..fe5dd982bd2 100644 --- a/sound/isa/wavefront/wavefront.c +++ b/sound/isa/wavefront/wavefront.c | |||
@@ -98,7 +98,7 @@ static struct pnp_card_device_id snd_wavefront_pnpids[] = { | |||
98 | 98 | ||
99 | MODULE_DEVICE_TABLE(pnp_card, snd_wavefront_pnpids); | 99 | MODULE_DEVICE_TABLE(pnp_card, snd_wavefront_pnpids); |
100 | 100 | ||
101 | static int __devinit | 101 | static int |
102 | snd_wavefront_pnp (int dev, snd_wavefront_card_t *acard, struct pnp_card_link *card, | 102 | snd_wavefront_pnp (int dev, snd_wavefront_card_t *acard, struct pnp_card_link *card, |
103 | const struct pnp_card_device_id *id) | 103 | const struct pnp_card_device_id *id) |
104 | { | 104 | { |
@@ -231,10 +231,9 @@ static irqreturn_t snd_wavefront_ics2115_interrupt(int irq, void *dev_id) | |||
231 | return IRQ_HANDLED; | 231 | return IRQ_HANDLED; |
232 | } | 232 | } |
233 | 233 | ||
234 | static struct snd_hwdep * __devinit | 234 | static struct snd_hwdep *snd_wavefront_new_synth(struct snd_card *card, |
235 | snd_wavefront_new_synth (struct snd_card *card, | 235 | int hw_dev, |
236 | int hw_dev, | 236 | snd_wavefront_card_t *acard) |
237 | snd_wavefront_card_t *acard) | ||
238 | { | 237 | { |
239 | struct snd_hwdep *wavefront_synth; | 238 | struct snd_hwdep *wavefront_synth; |
240 | 239 | ||
@@ -257,11 +256,10 @@ snd_wavefront_new_synth (struct snd_card *card, | |||
257 | return wavefront_synth; | 256 | return wavefront_synth; |
258 | } | 257 | } |
259 | 258 | ||
260 | static struct snd_hwdep * __devinit | 259 | static struct snd_hwdep *snd_wavefront_new_fx(struct snd_card *card, |
261 | snd_wavefront_new_fx (struct snd_card *card, | 260 | int hw_dev, |
262 | int hw_dev, | 261 | snd_wavefront_card_t *acard, |
263 | snd_wavefront_card_t *acard, | 262 | unsigned long port) |
264 | unsigned long port) | ||
265 | 263 | ||
266 | { | 264 | { |
267 | struct snd_hwdep *fx_processor; | 265 | struct snd_hwdep *fx_processor; |
@@ -284,12 +282,11 @@ snd_wavefront_new_fx (struct snd_card *card, | |||
284 | static snd_wavefront_mpu_id internal_id = internal_mpu; | 282 | static snd_wavefront_mpu_id internal_id = internal_mpu; |
285 | static snd_wavefront_mpu_id external_id = external_mpu; | 283 | static snd_wavefront_mpu_id external_id = external_mpu; |
286 | 284 | ||
287 | static struct snd_rawmidi *__devinit | 285 | static struct snd_rawmidi *snd_wavefront_new_midi(struct snd_card *card, |
288 | snd_wavefront_new_midi (struct snd_card *card, | 286 | int midi_dev, |
289 | int midi_dev, | 287 | snd_wavefront_card_t *acard, |
290 | snd_wavefront_card_t *acard, | 288 | unsigned long port, |
291 | unsigned long port, | 289 | snd_wavefront_mpu_id mpu) |
292 | snd_wavefront_mpu_id mpu) | ||
293 | 290 | ||
294 | { | 291 | { |
295 | struct snd_rawmidi *rmidi; | 292 | struct snd_rawmidi *rmidi; |
@@ -361,7 +358,7 @@ static int snd_wavefront_card_new(int dev, struct snd_card **cardp) | |||
361 | return 0; | 358 | return 0; |
362 | } | 359 | } |
363 | 360 | ||
364 | static int __devinit | 361 | static int |
365 | snd_wavefront_probe (struct snd_card *card, int dev) | 362 | snd_wavefront_probe (struct snd_card *card, int dev) |
366 | { | 363 | { |
367 | snd_wavefront_card_t *acard = card->private_data; | 364 | snd_wavefront_card_t *acard = card->private_data; |
@@ -541,8 +538,8 @@ snd_wavefront_probe (struct snd_card *card, int dev) | |||
541 | return snd_card_register(card); | 538 | return snd_card_register(card); |
542 | } | 539 | } |
543 | 540 | ||
544 | static int __devinit snd_wavefront_isa_match(struct device *pdev, | 541 | static int snd_wavefront_isa_match(struct device *pdev, |
545 | unsigned int dev) | 542 | unsigned int dev) |
546 | { | 543 | { |
547 | if (!enable[dev]) | 544 | if (!enable[dev]) |
548 | return 0; | 545 | return 0; |
@@ -561,8 +558,8 @@ static int __devinit snd_wavefront_isa_match(struct device *pdev, | |||
561 | return 1; | 558 | return 1; |
562 | } | 559 | } |
563 | 560 | ||
564 | static int __devinit snd_wavefront_isa_probe(struct device *pdev, | 561 | static int snd_wavefront_isa_probe(struct device *pdev, |
565 | unsigned int dev) | 562 | unsigned int dev) |
566 | { | 563 | { |
567 | struct snd_card *card; | 564 | struct snd_card *card; |
568 | int err; | 565 | int err; |
@@ -580,8 +577,8 @@ static int __devinit snd_wavefront_isa_probe(struct device *pdev, | |||
580 | return 0; | 577 | return 0; |
581 | } | 578 | } |
582 | 579 | ||
583 | static int __devexit snd_wavefront_isa_remove(struct device *devptr, | 580 | static int snd_wavefront_isa_remove(struct device *devptr, |
584 | unsigned int dev) | 581 | unsigned int dev) |
585 | { | 582 | { |
586 | snd_card_free(dev_get_drvdata(devptr)); | 583 | snd_card_free(dev_get_drvdata(devptr)); |
587 | dev_set_drvdata(devptr, NULL); | 584 | dev_set_drvdata(devptr, NULL); |
@@ -593,7 +590,7 @@ static int __devexit snd_wavefront_isa_remove(struct device *devptr, | |||
593 | static struct isa_driver snd_wavefront_driver = { | 590 | static struct isa_driver snd_wavefront_driver = { |
594 | .match = snd_wavefront_isa_match, | 591 | .match = snd_wavefront_isa_match, |
595 | .probe = snd_wavefront_isa_probe, | 592 | .probe = snd_wavefront_isa_probe, |
596 | .remove = __devexit_p(snd_wavefront_isa_remove), | 593 | .remove = snd_wavefront_isa_remove, |
597 | /* FIXME: suspend, resume */ | 594 | /* FIXME: suspend, resume */ |
598 | .driver = { | 595 | .driver = { |
599 | .name = DEV_NAME | 596 | .name = DEV_NAME |
@@ -602,8 +599,8 @@ static struct isa_driver snd_wavefront_driver = { | |||
602 | 599 | ||
603 | 600 | ||
604 | #ifdef CONFIG_PNP | 601 | #ifdef CONFIG_PNP |
605 | static int __devinit snd_wavefront_pnp_detect(struct pnp_card_link *pcard, | 602 | static int snd_wavefront_pnp_detect(struct pnp_card_link *pcard, |
606 | const struct pnp_card_device_id *pid) | 603 | const struct pnp_card_device_id *pid) |
607 | { | 604 | { |
608 | static int dev; | 605 | static int dev; |
609 | struct snd_card *card; | 606 | struct snd_card *card; |
@@ -637,7 +634,7 @@ static int __devinit snd_wavefront_pnp_detect(struct pnp_card_link *pcard, | |||
637 | return 0; | 634 | return 0; |
638 | } | 635 | } |
639 | 636 | ||
640 | static void __devexit snd_wavefront_pnp_remove(struct pnp_card_link * pcard) | 637 | static void snd_wavefront_pnp_remove(struct pnp_card_link *pcard) |
641 | { | 638 | { |
642 | snd_card_free(pnp_get_card_drvdata(pcard)); | 639 | snd_card_free(pnp_get_card_drvdata(pcard)); |
643 | pnp_set_card_drvdata(pcard, NULL); | 640 | pnp_set_card_drvdata(pcard, NULL); |
@@ -648,7 +645,7 @@ static struct pnp_card_driver wavefront_pnpc_driver = { | |||
648 | .name = "wavefront", | 645 | .name = "wavefront", |
649 | .id_table = snd_wavefront_pnpids, | 646 | .id_table = snd_wavefront_pnpids, |
650 | .probe = snd_wavefront_pnp_detect, | 647 | .probe = snd_wavefront_pnp_detect, |
651 | .remove = __devexit_p(snd_wavefront_pnp_remove), | 648 | .remove = snd_wavefront_pnp_remove, |
652 | /* FIXME: suspend,resume */ | 649 | /* FIXME: suspend,resume */ |
653 | }; | 650 | }; |
654 | 651 | ||