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/wavefront | |
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/wavefront')
-rw-r--r-- | sound/isa/wavefront/wavefront.c | 53 | ||||
-rw-r--r-- | sound/isa/wavefront/wavefront_fx.c | 2 | ||||
-rw-r--r-- | sound/isa/wavefront/wavefront_midi.c | 2 | ||||
-rw-r--r-- | sound/isa/wavefront/wavefront_synth.c | 14 |
4 files changed, 34 insertions, 37 deletions
diff --git a/sound/isa/wavefront/wavefront.c b/sound/isa/wavefront/wavefront.c index e0a73271cb91..fe5dd982bd23 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 | ||
diff --git a/sound/isa/wavefront/wavefront_fx.c b/sound/isa/wavefront/wavefront_fx.c index e51e0906050b..b77883c7ee76 100644 --- a/sound/isa/wavefront/wavefront_fx.c +++ b/sound/isa/wavefront/wavefront_fx.c | |||
@@ -240,7 +240,7 @@ snd_wavefront_fx_ioctl (struct snd_hwdep *sdev, struct file *file, | |||
240 | that outputs it. | 240 | that outputs it. |
241 | */ | 241 | */ |
242 | 242 | ||
243 | int __devinit | 243 | int |
244 | snd_wavefront_fx_start (snd_wavefront_t *dev) | 244 | snd_wavefront_fx_start (snd_wavefront_t *dev) |
245 | { | 245 | { |
246 | unsigned int i; | 246 | unsigned int i; |
diff --git a/sound/isa/wavefront/wavefront_midi.c b/sound/isa/wavefront/wavefront_midi.c index 65329f3abc30..7dc991682297 100644 --- a/sound/isa/wavefront/wavefront_midi.c +++ b/sound/isa/wavefront/wavefront_midi.c | |||
@@ -481,7 +481,7 @@ snd_wavefront_midi_disable_virtual (snd_wavefront_card_t *card) | |||
481 | spin_unlock_irqrestore (&card->wavefront.midi.virtual, flags); | 481 | spin_unlock_irqrestore (&card->wavefront.midi.virtual, flags); |
482 | } | 482 | } |
483 | 483 | ||
484 | int __devinit | 484 | int |
485 | snd_wavefront_midi_start (snd_wavefront_card_t *card) | 485 | snd_wavefront_midi_start (snd_wavefront_card_t *card) |
486 | 486 | ||
487 | { | 487 | { |
diff --git a/sound/isa/wavefront/wavefront_synth.c b/sound/isa/wavefront/wavefront_synth.c index b1bf8d4e6494..a2f87f9488ee 100644 --- a/sound/isa/wavefront/wavefront_synth.c +++ b/sound/isa/wavefront/wavefront_synth.c | |||
@@ -1739,7 +1739,7 @@ snd_wavefront_internal_interrupt (snd_wavefront_card_t *card) | |||
1739 | 7 Unused | 1739 | 7 Unused |
1740 | */ | 1740 | */ |
1741 | 1741 | ||
1742 | static int __devinit | 1742 | static int |
1743 | snd_wavefront_interrupt_bits (int irq) | 1743 | snd_wavefront_interrupt_bits (int irq) |
1744 | 1744 | ||
1745 | { | 1745 | { |
@@ -1767,7 +1767,7 @@ snd_wavefront_interrupt_bits (int irq) | |||
1767 | return bits; | 1767 | return bits; |
1768 | } | 1768 | } |
1769 | 1769 | ||
1770 | static void __devinit | 1770 | static void |
1771 | wavefront_should_cause_interrupt (snd_wavefront_t *dev, | 1771 | wavefront_should_cause_interrupt (snd_wavefront_t *dev, |
1772 | int val, int port, unsigned long timeout) | 1772 | int val, int port, unsigned long timeout) |
1773 | 1773 | ||
@@ -1786,7 +1786,7 @@ wavefront_should_cause_interrupt (snd_wavefront_t *dev, | |||
1786 | } | 1786 | } |
1787 | } | 1787 | } |
1788 | 1788 | ||
1789 | static int __devinit | 1789 | static int |
1790 | wavefront_reset_to_cleanliness (snd_wavefront_t *dev) | 1790 | wavefront_reset_to_cleanliness (snd_wavefront_t *dev) |
1791 | 1791 | ||
1792 | { | 1792 | { |
@@ -1937,7 +1937,7 @@ wavefront_reset_to_cleanliness (snd_wavefront_t *dev) | |||
1937 | return (1); | 1937 | return (1); |
1938 | } | 1938 | } |
1939 | 1939 | ||
1940 | static int __devinit | 1940 | static int |
1941 | wavefront_download_firmware (snd_wavefront_t *dev, char *path) | 1941 | wavefront_download_firmware (snd_wavefront_t *dev, char *path) |
1942 | 1942 | ||
1943 | { | 1943 | { |
@@ -2010,7 +2010,7 @@ wavefront_download_firmware (snd_wavefront_t *dev, char *path) | |||
2010 | } | 2010 | } |
2011 | 2011 | ||
2012 | 2012 | ||
2013 | static int __devinit | 2013 | static int |
2014 | wavefront_do_reset (snd_wavefront_t *dev) | 2014 | wavefront_do_reset (snd_wavefront_t *dev) |
2015 | 2015 | ||
2016 | { | 2016 | { |
@@ -2099,7 +2099,7 @@ wavefront_do_reset (snd_wavefront_t *dev) | |||
2099 | return 1; | 2099 | return 1; |
2100 | } | 2100 | } |
2101 | 2101 | ||
2102 | int __devinit | 2102 | int |
2103 | snd_wavefront_start (snd_wavefront_t *dev) | 2103 | snd_wavefront_start (snd_wavefront_t *dev) |
2104 | 2104 | ||
2105 | { | 2105 | { |
@@ -2141,7 +2141,7 @@ snd_wavefront_start (snd_wavefront_t *dev) | |||
2141 | return (0); | 2141 | return (0); |
2142 | } | 2142 | } |
2143 | 2143 | ||
2144 | int __devinit | 2144 | int |
2145 | snd_wavefront_detect (snd_wavefront_card_t *card) | 2145 | snd_wavefront_detect (snd_wavefront_card_t *card) |
2146 | 2146 | ||
2147 | { | 2147 | { |