aboutsummaryrefslogtreecommitdiffstats
path: root/sound/isa/wavefront/wavefront.c
diff options
context:
space:
mode:
authorBill Pemberton <wfp5p@virginia.edu>2012-12-06 12:35:21 -0500
committerTakashi Iwai <tiwai@suse.de>2012-12-07 01:32:17 -0500
commit1bff292e9abec7477d43abb2b93c7fd26c44859b (patch)
tree6c9a58a0f5aacf99a3ee4a964b1fefd4470b0893 /sound/isa/wavefront/wavefront.c
parentf120a6fb486c2500c9ae11fd2da11fbde29bc186 (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/wavefront.c')
-rw-r--r--sound/isa/wavefront/wavefront.c53
1 files changed, 25 insertions, 28 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
99MODULE_DEVICE_TABLE(pnp_card, snd_wavefront_pnpids); 99MODULE_DEVICE_TABLE(pnp_card, snd_wavefront_pnpids);
100 100
101static int __devinit 101static int
102snd_wavefront_pnp (int dev, snd_wavefront_card_t *acard, struct pnp_card_link *card, 102snd_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
234static struct snd_hwdep * __devinit 234static struct snd_hwdep *snd_wavefront_new_synth(struct snd_card *card,
235snd_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
260static struct snd_hwdep * __devinit 259static struct snd_hwdep *snd_wavefront_new_fx(struct snd_card *card,
261snd_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,
284static snd_wavefront_mpu_id internal_id = internal_mpu; 282static snd_wavefront_mpu_id internal_id = internal_mpu;
285static snd_wavefront_mpu_id external_id = external_mpu; 283static snd_wavefront_mpu_id external_id = external_mpu;
286 284
287static struct snd_rawmidi *__devinit 285static struct snd_rawmidi *snd_wavefront_new_midi(struct snd_card *card,
288snd_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
364static int __devinit 361static int
365snd_wavefront_probe (struct snd_card *card, int dev) 362snd_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
544static int __devinit snd_wavefront_isa_match(struct device *pdev, 541static 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
564static int __devinit snd_wavefront_isa_probe(struct device *pdev, 561static 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
583static int __devexit snd_wavefront_isa_remove(struct device *devptr, 580static 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,
593static struct isa_driver snd_wavefront_driver = { 590static 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
605static int __devinit snd_wavefront_pnp_detect(struct pnp_card_link *pcard, 602static 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
640static void __devexit snd_wavefront_pnp_remove(struct pnp_card_link * pcard) 637static 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