diff options
Diffstat (limited to 'sound/isa/cs423x/cs4236.c')
-rw-r--r-- | sound/isa/cs423x/cs4236.c | 50 |
1 files changed, 25 insertions, 25 deletions
diff --git a/sound/isa/cs423x/cs4236.c b/sound/isa/cs423x/cs4236.c index 740c51a1ed7b..252e9fb37db3 100644 --- a/sound/isa/cs423x/cs4236.c +++ b/sound/isa/cs423x/cs4236.c | |||
@@ -251,7 +251,7 @@ static struct pnp_card_device_id snd_cs423x_pnpids[] = { | |||
251 | MODULE_DEVICE_TABLE(pnp_card, snd_cs423x_pnpids); | 251 | MODULE_DEVICE_TABLE(pnp_card, snd_cs423x_pnpids); |
252 | 252 | ||
253 | /* WSS initialization */ | 253 | /* WSS initialization */ |
254 | static int __devinit snd_cs423x_pnp_init_wss(int dev, struct pnp_dev *pdev) | 254 | static int snd_cs423x_pnp_init_wss(int dev, struct pnp_dev *pdev) |
255 | { | 255 | { |
256 | if (pnp_activate_dev(pdev) < 0) { | 256 | if (pnp_activate_dev(pdev) < 0) { |
257 | printk(KERN_ERR IDENT " WSS PnP configure failed for WSS (out of resources?)\n"); | 257 | printk(KERN_ERR IDENT " WSS PnP configure failed for WSS (out of resources?)\n"); |
@@ -272,7 +272,7 @@ static int __devinit snd_cs423x_pnp_init_wss(int dev, struct pnp_dev *pdev) | |||
272 | } | 272 | } |
273 | 273 | ||
274 | /* CTRL initialization */ | 274 | /* CTRL initialization */ |
275 | static int __devinit snd_cs423x_pnp_init_ctrl(int dev, struct pnp_dev *pdev) | 275 | static int snd_cs423x_pnp_init_ctrl(int dev, struct pnp_dev *pdev) |
276 | { | 276 | { |
277 | if (pnp_activate_dev(pdev) < 0) { | 277 | if (pnp_activate_dev(pdev) < 0) { |
278 | printk(KERN_ERR IDENT " CTRL PnP configure failed for WSS (out of resources?)\n"); | 278 | printk(KERN_ERR IDENT " CTRL PnP configure failed for WSS (out of resources?)\n"); |
@@ -284,7 +284,7 @@ static int __devinit snd_cs423x_pnp_init_ctrl(int dev, struct pnp_dev *pdev) | |||
284 | } | 284 | } |
285 | 285 | ||
286 | /* MPU initialization */ | 286 | /* MPU initialization */ |
287 | static int __devinit snd_cs423x_pnp_init_mpu(int dev, struct pnp_dev *pdev) | 287 | static int snd_cs423x_pnp_init_mpu(int dev, struct pnp_dev *pdev) |
288 | { | 288 | { |
289 | if (pnp_activate_dev(pdev) < 0) { | 289 | if (pnp_activate_dev(pdev) < 0) { |
290 | printk(KERN_ERR IDENT " MPU401 PnP configure failed for WSS (out of resources?)\n"); | 290 | printk(KERN_ERR IDENT " MPU401 PnP configure failed for WSS (out of resources?)\n"); |
@@ -303,9 +303,9 @@ static int __devinit snd_cs423x_pnp_init_mpu(int dev, struct pnp_dev *pdev) | |||
303 | return 0; | 303 | return 0; |
304 | } | 304 | } |
305 | 305 | ||
306 | static int __devinit snd_card_cs423x_pnp(int dev, struct snd_card_cs4236 *acard, | 306 | static int snd_card_cs423x_pnp(int dev, struct snd_card_cs4236 *acard, |
307 | struct pnp_dev *pdev, | 307 | struct pnp_dev *pdev, |
308 | struct pnp_dev *cdev) | 308 | struct pnp_dev *cdev) |
309 | { | 309 | { |
310 | acard->wss = pdev; | 310 | acard->wss = pdev; |
311 | if (snd_cs423x_pnp_init_wss(dev, acard->wss) < 0) | 311 | if (snd_cs423x_pnp_init_wss(dev, acard->wss) < 0) |
@@ -317,9 +317,9 @@ static int __devinit snd_card_cs423x_pnp(int dev, struct snd_card_cs4236 *acard, | |||
317 | return 0; | 317 | return 0; |
318 | } | 318 | } |
319 | 319 | ||
320 | static int __devinit snd_card_cs423x_pnpc(int dev, struct snd_card_cs4236 *acard, | 320 | static int snd_card_cs423x_pnpc(int dev, struct snd_card_cs4236 *acard, |
321 | struct pnp_card_link *card, | 321 | struct pnp_card_link *card, |
322 | const struct pnp_card_device_id *id) | 322 | const struct pnp_card_device_id *id) |
323 | { | 323 | { |
324 | acard->wss = pnp_request_card_device(card, id->devs[0].id, NULL); | 324 | acard->wss = pnp_request_card_device(card, id->devs[0].id, NULL); |
325 | if (acard->wss == NULL) | 325 | if (acard->wss == NULL) |
@@ -378,7 +378,7 @@ static int snd_cs423x_card_new(int dev, struct snd_card **cardp) | |||
378 | return 0; | 378 | return 0; |
379 | } | 379 | } |
380 | 380 | ||
381 | static int __devinit snd_cs423x_probe(struct snd_card *card, int dev) | 381 | static int snd_cs423x_probe(struct snd_card *card, int dev) |
382 | { | 382 | { |
383 | struct snd_card_cs4236 *acard; | 383 | struct snd_card_cs4236 *acard; |
384 | struct snd_pcm *pcm; | 384 | struct snd_pcm *pcm; |
@@ -456,8 +456,8 @@ static int __devinit snd_cs423x_probe(struct snd_card *card, int dev) | |||
456 | return snd_card_register(card); | 456 | return snd_card_register(card); |
457 | } | 457 | } |
458 | 458 | ||
459 | static int __devinit snd_cs423x_isa_match(struct device *pdev, | 459 | static int snd_cs423x_isa_match(struct device *pdev, |
460 | unsigned int dev) | 460 | unsigned int dev) |
461 | { | 461 | { |
462 | if (!enable[dev] || is_isapnp_selected(dev)) | 462 | if (!enable[dev] || is_isapnp_selected(dev)) |
463 | return 0; | 463 | return 0; |
@@ -481,8 +481,8 @@ static int __devinit snd_cs423x_isa_match(struct device *pdev, | |||
481 | return 1; | 481 | return 1; |
482 | } | 482 | } |
483 | 483 | ||
484 | static int __devinit snd_cs423x_isa_probe(struct device *pdev, | 484 | static int snd_cs423x_isa_probe(struct device *pdev, |
485 | unsigned int dev) | 485 | unsigned int dev) |
486 | { | 486 | { |
487 | struct snd_card *card; | 487 | struct snd_card *card; |
488 | int err; | 488 | int err; |
@@ -500,8 +500,8 @@ static int __devinit snd_cs423x_isa_probe(struct device *pdev, | |||
500 | return 0; | 500 | return 0; |
501 | } | 501 | } |
502 | 502 | ||
503 | static int __devexit snd_cs423x_isa_remove(struct device *pdev, | 503 | static int snd_cs423x_isa_remove(struct device *pdev, |
504 | unsigned int dev) | 504 | unsigned int dev) |
505 | { | 505 | { |
506 | snd_card_free(dev_get_drvdata(pdev)); | 506 | snd_card_free(dev_get_drvdata(pdev)); |
507 | dev_set_drvdata(pdev, NULL); | 507 | dev_set_drvdata(pdev, NULL); |
@@ -540,7 +540,7 @@ static int snd_cs423x_isa_resume(struct device *dev, unsigned int n) | |||
540 | static struct isa_driver cs423x_isa_driver = { | 540 | static struct isa_driver cs423x_isa_driver = { |
541 | .match = snd_cs423x_isa_match, | 541 | .match = snd_cs423x_isa_match, |
542 | .probe = snd_cs423x_isa_probe, | 542 | .probe = snd_cs423x_isa_probe, |
543 | .remove = __devexit_p(snd_cs423x_isa_remove), | 543 | .remove = snd_cs423x_isa_remove, |
544 | #ifdef CONFIG_PM | 544 | #ifdef CONFIG_PM |
545 | .suspend = snd_cs423x_isa_suspend, | 545 | .suspend = snd_cs423x_isa_suspend, |
546 | .resume = snd_cs423x_isa_resume, | 546 | .resume = snd_cs423x_isa_resume, |
@@ -552,8 +552,8 @@ static struct isa_driver cs423x_isa_driver = { | |||
552 | 552 | ||
553 | 553 | ||
554 | #ifdef CONFIG_PNP | 554 | #ifdef CONFIG_PNP |
555 | static int __devinit snd_cs423x_pnpbios_detect(struct pnp_dev *pdev, | 555 | static int snd_cs423x_pnpbios_detect(struct pnp_dev *pdev, |
556 | const struct pnp_device_id *id) | 556 | const struct pnp_device_id *id) |
557 | { | 557 | { |
558 | static int dev; | 558 | static int dev; |
559 | int err; | 559 | int err; |
@@ -597,7 +597,7 @@ static int __devinit snd_cs423x_pnpbios_detect(struct pnp_dev *pdev, | |||
597 | return 0; | 597 | return 0; |
598 | } | 598 | } |
599 | 599 | ||
600 | static void __devexit snd_cs423x_pnp_remove(struct pnp_dev *pdev) | 600 | static void snd_cs423x_pnp_remove(struct pnp_dev *pdev) |
601 | { | 601 | { |
602 | snd_card_free(pnp_get_drvdata(pdev)); | 602 | snd_card_free(pnp_get_drvdata(pdev)); |
603 | pnp_set_drvdata(pdev, NULL); | 603 | pnp_set_drvdata(pdev, NULL); |
@@ -619,15 +619,15 @@ static struct pnp_driver cs423x_pnp_driver = { | |||
619 | .name = "cs423x-pnpbios", | 619 | .name = "cs423x-pnpbios", |
620 | .id_table = snd_cs423x_pnpbiosids, | 620 | .id_table = snd_cs423x_pnpbiosids, |
621 | .probe = snd_cs423x_pnpbios_detect, | 621 | .probe = snd_cs423x_pnpbios_detect, |
622 | .remove = __devexit_p(snd_cs423x_pnp_remove), | 622 | .remove = snd_cs423x_pnp_remove, |
623 | #ifdef CONFIG_PM | 623 | #ifdef CONFIG_PM |
624 | .suspend = snd_cs423x_pnp_suspend, | 624 | .suspend = snd_cs423x_pnp_suspend, |
625 | .resume = snd_cs423x_pnp_resume, | 625 | .resume = snd_cs423x_pnp_resume, |
626 | #endif | 626 | #endif |
627 | }; | 627 | }; |
628 | 628 | ||
629 | static int __devinit snd_cs423x_pnpc_detect(struct pnp_card_link *pcard, | 629 | static int snd_cs423x_pnpc_detect(struct pnp_card_link *pcard, |
630 | const struct pnp_card_device_id *pid) | 630 | const struct pnp_card_device_id *pid) |
631 | { | 631 | { |
632 | static int dev; | 632 | static int dev; |
633 | struct snd_card *card; | 633 | struct snd_card *card; |
@@ -659,7 +659,7 @@ static int __devinit snd_cs423x_pnpc_detect(struct pnp_card_link *pcard, | |||
659 | return 0; | 659 | return 0; |
660 | } | 660 | } |
661 | 661 | ||
662 | static void __devexit snd_cs423x_pnpc_remove(struct pnp_card_link * pcard) | 662 | static void snd_cs423x_pnpc_remove(struct pnp_card_link *pcard) |
663 | { | 663 | { |
664 | snd_card_free(pnp_get_card_drvdata(pcard)); | 664 | snd_card_free(pnp_get_card_drvdata(pcard)); |
665 | pnp_set_card_drvdata(pcard, NULL); | 665 | pnp_set_card_drvdata(pcard, NULL); |
@@ -682,7 +682,7 @@ static struct pnp_card_driver cs423x_pnpc_driver = { | |||
682 | .name = CS423X_ISAPNP_DRIVER, | 682 | .name = CS423X_ISAPNP_DRIVER, |
683 | .id_table = snd_cs423x_pnpids, | 683 | .id_table = snd_cs423x_pnpids, |
684 | .probe = snd_cs423x_pnpc_detect, | 684 | .probe = snd_cs423x_pnpc_detect, |
685 | .remove = __devexit_p(snd_cs423x_pnpc_remove), | 685 | .remove = snd_cs423x_pnpc_remove, |
686 | #ifdef CONFIG_PM | 686 | #ifdef CONFIG_PM |
687 | .suspend = snd_cs423x_pnpc_suspend, | 687 | .suspend = snd_cs423x_pnpc_suspend, |
688 | .resume = snd_cs423x_pnpc_resume, | 688 | .resume = snd_cs423x_pnpc_resume, |