diff options
author | Bill Pemberton <wfp5p@virginia.edu> | 2012-12-06 12:35:23 -0500 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2012-12-07 01:33:30 -0500 |
commit | 15afafc2565bc785eb7a440b8b4a53f77910cf04 (patch) | |
tree | c5d88e93d33284ef7ac83cf9925886f28829375e /sound/ppc | |
parent | 5cc3203f72d89064da315529103f277124f57005 (diff) |
ALSA: ppc: 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/ppc')
-rw-r--r-- | sound/ppc/awacs.c | 54 | ||||
-rw-r--r-- | sound/ppc/beep.c | 2 | ||||
-rw-r--r-- | sound/ppc/burgundy.c | 22 | ||||
-rw-r--r-- | sound/ppc/daca.c | 2 | ||||
-rw-r--r-- | sound/ppc/keywest.c | 4 | ||||
-rw-r--r-- | sound/ppc/pmac.c | 12 | ||||
-rw-r--r-- | sound/ppc/powermac.c | 6 | ||||
-rw-r--r-- | sound/ppc/tumbler.c | 16 |
8 files changed, 59 insertions, 59 deletions
diff --git a/sound/ppc/awacs.c b/sound/ppc/awacs.c index b36679384b27..5fbf5db2543d 100644 --- a/sound/ppc/awacs.c +++ b/sound/ppc/awacs.c | |||
@@ -477,7 +477,7 @@ static int snd_pmac_awacs_put_master_amp(struct snd_kcontrol *kcontrol, | |||
477 | #define AMP_CH_SPK 0 | 477 | #define AMP_CH_SPK 0 |
478 | #define AMP_CH_HD 1 | 478 | #define AMP_CH_HD 1 |
479 | 479 | ||
480 | static struct snd_kcontrol_new snd_pmac_awacs_amp_vol[] __devinitdata = { | 480 | static struct snd_kcontrol_new snd_pmac_awacs_amp_vol[] = { |
481 | { .iface = SNDRV_CTL_ELEM_IFACE_MIXER, | 481 | { .iface = SNDRV_CTL_ELEM_IFACE_MIXER, |
482 | .name = "Speaker Playback Volume", | 482 | .name = "Speaker Playback Volume", |
483 | .info = snd_pmac_awacs_info_volume_amp, | 483 | .info = snd_pmac_awacs_info_volume_amp, |
@@ -514,7 +514,7 @@ static struct snd_kcontrol_new snd_pmac_awacs_amp_vol[] __devinitdata = { | |||
514 | }, | 514 | }, |
515 | }; | 515 | }; |
516 | 516 | ||
517 | static struct snd_kcontrol_new snd_pmac_awacs_amp_hp_sw __devinitdata = { | 517 | static struct snd_kcontrol_new snd_pmac_awacs_amp_hp_sw = { |
518 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, | 518 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, |
519 | .name = "Headphone Playback Switch", | 519 | .name = "Headphone Playback Switch", |
520 | .info = snd_pmac_boolean_stereo_info, | 520 | .info = snd_pmac_boolean_stereo_info, |
@@ -523,7 +523,7 @@ static struct snd_kcontrol_new snd_pmac_awacs_amp_hp_sw __devinitdata = { | |||
523 | .private_value = AMP_CH_HD, | 523 | .private_value = AMP_CH_HD, |
524 | }; | 524 | }; |
525 | 525 | ||
526 | static struct snd_kcontrol_new snd_pmac_awacs_amp_spk_sw __devinitdata = { | 526 | static struct snd_kcontrol_new snd_pmac_awacs_amp_spk_sw = { |
527 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, | 527 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, |
528 | .name = "Speaker Playback Switch", | 528 | .name = "Speaker Playback Switch", |
529 | .info = snd_pmac_boolean_stereo_info, | 529 | .info = snd_pmac_boolean_stereo_info, |
@@ -595,46 +595,46 @@ static int snd_pmac_screamer_mic_boost_put(struct snd_kcontrol *kcontrol, | |||
595 | /* | 595 | /* |
596 | * lists of mixer elements | 596 | * lists of mixer elements |
597 | */ | 597 | */ |
598 | static struct snd_kcontrol_new snd_pmac_awacs_mixers[] __devinitdata = { | 598 | static struct snd_kcontrol_new snd_pmac_awacs_mixers[] = { |
599 | AWACS_SWITCH("Master Capture Switch", 1, SHIFT_LOOPTHRU, 0), | 599 | AWACS_SWITCH("Master Capture Switch", 1, SHIFT_LOOPTHRU, 0), |
600 | AWACS_VOLUME("Master Capture Volume", 0, 4, 0), | 600 | AWACS_VOLUME("Master Capture Volume", 0, 4, 0), |
601 | /* AWACS_SWITCH("Unknown Playback Switch", 6, SHIFT_PAROUT0, 0), */ | 601 | /* AWACS_SWITCH("Unknown Playback Switch", 6, SHIFT_PAROUT0, 0), */ |
602 | }; | 602 | }; |
603 | 603 | ||
604 | static struct snd_kcontrol_new snd_pmac_screamer_mixers_beige[] __devinitdata = { | 604 | static struct snd_kcontrol_new snd_pmac_screamer_mixers_beige[] = { |
605 | AWACS_VOLUME("Master Playback Volume", 2, 6, 1), | 605 | AWACS_VOLUME("Master Playback Volume", 2, 6, 1), |
606 | AWACS_VOLUME("Play-through Playback Volume", 5, 6, 1), | 606 | AWACS_VOLUME("Play-through Playback Volume", 5, 6, 1), |
607 | AWACS_SWITCH("Line Capture Switch", 0, SHIFT_MUX_MIC, 0), | 607 | AWACS_SWITCH("Line Capture Switch", 0, SHIFT_MUX_MIC, 0), |
608 | AWACS_SWITCH("CD Capture Switch", 0, SHIFT_MUX_LINE, 0), | 608 | AWACS_SWITCH("CD Capture Switch", 0, SHIFT_MUX_LINE, 0), |
609 | }; | 609 | }; |
610 | 610 | ||
611 | static struct snd_kcontrol_new snd_pmac_screamer_mixers_lo[] __devinitdata = { | 611 | static struct snd_kcontrol_new snd_pmac_screamer_mixers_lo[] = { |
612 | AWACS_VOLUME("Line out Playback Volume", 2, 6, 1), | 612 | AWACS_VOLUME("Line out Playback Volume", 2, 6, 1), |
613 | }; | 613 | }; |
614 | 614 | ||
615 | static struct snd_kcontrol_new snd_pmac_screamer_mixers_imac[] __devinitdata = { | 615 | static struct snd_kcontrol_new snd_pmac_screamer_mixers_imac[] = { |
616 | AWACS_VOLUME("Play-through Playback Volume", 5, 6, 1), | 616 | AWACS_VOLUME("Play-through Playback Volume", 5, 6, 1), |
617 | AWACS_SWITCH("CD Capture Switch", 0, SHIFT_MUX_CD, 0), | 617 | AWACS_SWITCH("CD Capture Switch", 0, SHIFT_MUX_CD, 0), |
618 | }; | 618 | }; |
619 | 619 | ||
620 | static struct snd_kcontrol_new snd_pmac_screamer_mixers_g4agp[] __devinitdata = { | 620 | static struct snd_kcontrol_new snd_pmac_screamer_mixers_g4agp[] = { |
621 | AWACS_VOLUME("Line out Playback Volume", 2, 6, 1), | 621 | AWACS_VOLUME("Line out Playback Volume", 2, 6, 1), |
622 | AWACS_VOLUME("Master Playback Volume", 5, 6, 1), | 622 | AWACS_VOLUME("Master Playback Volume", 5, 6, 1), |
623 | AWACS_SWITCH("CD Capture Switch", 0, SHIFT_MUX_CD, 0), | 623 | AWACS_SWITCH("CD Capture Switch", 0, SHIFT_MUX_CD, 0), |
624 | AWACS_SWITCH("Line Capture Switch", 0, SHIFT_MUX_MIC, 0), | 624 | AWACS_SWITCH("Line Capture Switch", 0, SHIFT_MUX_MIC, 0), |
625 | }; | 625 | }; |
626 | 626 | ||
627 | static struct snd_kcontrol_new snd_pmac_awacs_mixers_pmac7500[] __devinitdata = { | 627 | static struct snd_kcontrol_new snd_pmac_awacs_mixers_pmac7500[] = { |
628 | AWACS_VOLUME("Line out Playback Volume", 2, 6, 1), | 628 | AWACS_VOLUME("Line out Playback Volume", 2, 6, 1), |
629 | AWACS_SWITCH("CD Capture Switch", 0, SHIFT_MUX_CD, 0), | 629 | AWACS_SWITCH("CD Capture Switch", 0, SHIFT_MUX_CD, 0), |
630 | AWACS_SWITCH("Line Capture Switch", 0, SHIFT_MUX_MIC, 0), | 630 | AWACS_SWITCH("Line Capture Switch", 0, SHIFT_MUX_MIC, 0), |
631 | }; | 631 | }; |
632 | 632 | ||
633 | static struct snd_kcontrol_new snd_pmac_awacs_mixers_pmac5500[] __devinitdata = { | 633 | static struct snd_kcontrol_new snd_pmac_awacs_mixers_pmac5500[] = { |
634 | AWACS_VOLUME("Headphone Playback Volume", 2, 6, 1), | 634 | AWACS_VOLUME("Headphone Playback Volume", 2, 6, 1), |
635 | }; | 635 | }; |
636 | 636 | ||
637 | static struct snd_kcontrol_new snd_pmac_awacs_mixers_pmac[] __devinitdata = { | 637 | static struct snd_kcontrol_new snd_pmac_awacs_mixers_pmac[] = { |
638 | AWACS_VOLUME("Master Playback Volume", 2, 6, 1), | 638 | AWACS_VOLUME("Master Playback Volume", 2, 6, 1), |
639 | AWACS_SWITCH("CD Capture Switch", 0, SHIFT_MUX_CD, 0), | 639 | AWACS_SWITCH("CD Capture Switch", 0, SHIFT_MUX_CD, 0), |
640 | }; | 640 | }; |
@@ -642,34 +642,34 @@ static struct snd_kcontrol_new snd_pmac_awacs_mixers_pmac[] __devinitdata = { | |||
642 | /* FIXME: is this correct order? | 642 | /* FIXME: is this correct order? |
643 | * screamer (powerbook G3 pismo) seems to have different bits... | 643 | * screamer (powerbook G3 pismo) seems to have different bits... |
644 | */ | 644 | */ |
645 | static struct snd_kcontrol_new snd_pmac_awacs_mixers2[] __devinitdata = { | 645 | static struct snd_kcontrol_new snd_pmac_awacs_mixers2[] = { |
646 | AWACS_SWITCH("Line Capture Switch", 0, SHIFT_MUX_LINE, 0), | 646 | AWACS_SWITCH("Line Capture Switch", 0, SHIFT_MUX_LINE, 0), |
647 | AWACS_SWITCH("Mic Capture Switch", 0, SHIFT_MUX_MIC, 0), | 647 | AWACS_SWITCH("Mic Capture Switch", 0, SHIFT_MUX_MIC, 0), |
648 | }; | 648 | }; |
649 | 649 | ||
650 | static struct snd_kcontrol_new snd_pmac_screamer_mixers2[] __devinitdata = { | 650 | static struct snd_kcontrol_new snd_pmac_screamer_mixers2[] = { |
651 | AWACS_SWITCH("Line Capture Switch", 0, SHIFT_MUX_MIC, 0), | 651 | AWACS_SWITCH("Line Capture Switch", 0, SHIFT_MUX_MIC, 0), |
652 | AWACS_SWITCH("Mic Capture Switch", 0, SHIFT_MUX_LINE, 0), | 652 | AWACS_SWITCH("Mic Capture Switch", 0, SHIFT_MUX_LINE, 0), |
653 | }; | 653 | }; |
654 | 654 | ||
655 | static struct snd_kcontrol_new snd_pmac_awacs_mixers2_pmac5500[] __devinitdata = { | 655 | static struct snd_kcontrol_new snd_pmac_awacs_mixers2_pmac5500[] = { |
656 | AWACS_SWITCH("CD Capture Switch", 0, SHIFT_MUX_CD, 0), | 656 | AWACS_SWITCH("CD Capture Switch", 0, SHIFT_MUX_CD, 0), |
657 | }; | 657 | }; |
658 | 658 | ||
659 | static struct snd_kcontrol_new snd_pmac_awacs_master_sw __devinitdata = | 659 | static struct snd_kcontrol_new snd_pmac_awacs_master_sw = |
660 | AWACS_SWITCH("Master Playback Switch", 1, SHIFT_HDMUTE, 1); | 660 | AWACS_SWITCH("Master Playback Switch", 1, SHIFT_HDMUTE, 1); |
661 | 661 | ||
662 | static struct snd_kcontrol_new snd_pmac_awacs_master_sw_imac __devinitdata = | 662 | static struct snd_kcontrol_new snd_pmac_awacs_master_sw_imac = |
663 | AWACS_SWITCH("Line out Playback Switch", 1, SHIFT_HDMUTE, 1); | 663 | AWACS_SWITCH("Line out Playback Switch", 1, SHIFT_HDMUTE, 1); |
664 | 664 | ||
665 | static struct snd_kcontrol_new snd_pmac_awacs_master_sw_pmac5500 __devinitdata = | 665 | static struct snd_kcontrol_new snd_pmac_awacs_master_sw_pmac5500 = |
666 | AWACS_SWITCH("Headphone Playback Switch", 1, SHIFT_HDMUTE, 1); | 666 | AWACS_SWITCH("Headphone Playback Switch", 1, SHIFT_HDMUTE, 1); |
667 | 667 | ||
668 | static struct snd_kcontrol_new snd_pmac_awacs_mic_boost[] __devinitdata = { | 668 | static struct snd_kcontrol_new snd_pmac_awacs_mic_boost[] = { |
669 | AWACS_SWITCH("Mic Boost Capture Switch", 0, SHIFT_GAINLINE, 0), | 669 | AWACS_SWITCH("Mic Boost Capture Switch", 0, SHIFT_GAINLINE, 0), |
670 | }; | 670 | }; |
671 | 671 | ||
672 | static struct snd_kcontrol_new snd_pmac_screamer_mic_boost[] __devinitdata = { | 672 | static struct snd_kcontrol_new snd_pmac_screamer_mic_boost[] = { |
673 | { .iface = SNDRV_CTL_ELEM_IFACE_MIXER, | 673 | { .iface = SNDRV_CTL_ELEM_IFACE_MIXER, |
674 | .name = "Mic Boost Capture Volume", | 674 | .name = "Mic Boost Capture Volume", |
675 | .info = snd_pmac_screamer_mic_boost_info, | 675 | .info = snd_pmac_screamer_mic_boost_info, |
@@ -678,34 +678,34 @@ static struct snd_kcontrol_new snd_pmac_screamer_mic_boost[] __devinitdata = { | |||
678 | }, | 678 | }, |
679 | }; | 679 | }; |
680 | 680 | ||
681 | static struct snd_kcontrol_new snd_pmac_awacs_mic_boost_pmac7500[] __devinitdata = | 681 | static struct snd_kcontrol_new snd_pmac_awacs_mic_boost_pmac7500[] = |
682 | { | 682 | { |
683 | AWACS_SWITCH("Line Boost Capture Switch", 0, SHIFT_GAINLINE, 0), | 683 | AWACS_SWITCH("Line Boost Capture Switch", 0, SHIFT_GAINLINE, 0), |
684 | }; | 684 | }; |
685 | 685 | ||
686 | static struct snd_kcontrol_new snd_pmac_screamer_mic_boost_beige[] __devinitdata = | 686 | static struct snd_kcontrol_new snd_pmac_screamer_mic_boost_beige[] = |
687 | { | 687 | { |
688 | AWACS_SWITCH("Line Boost Capture Switch", 0, SHIFT_GAINLINE, 0), | 688 | AWACS_SWITCH("Line Boost Capture Switch", 0, SHIFT_GAINLINE, 0), |
689 | AWACS_SWITCH("CD Boost Capture Switch", 6, SHIFT_MIC_BOOST, 0), | 689 | AWACS_SWITCH("CD Boost Capture Switch", 6, SHIFT_MIC_BOOST, 0), |
690 | }; | 690 | }; |
691 | 691 | ||
692 | static struct snd_kcontrol_new snd_pmac_screamer_mic_boost_imac[] __devinitdata = | 692 | static struct snd_kcontrol_new snd_pmac_screamer_mic_boost_imac[] = |
693 | { | 693 | { |
694 | AWACS_SWITCH("Line Boost Capture Switch", 0, SHIFT_GAINLINE, 0), | 694 | AWACS_SWITCH("Line Boost Capture Switch", 0, SHIFT_GAINLINE, 0), |
695 | AWACS_SWITCH("Mic Boost Capture Switch", 6, SHIFT_MIC_BOOST, 0), | 695 | AWACS_SWITCH("Mic Boost Capture Switch", 6, SHIFT_MIC_BOOST, 0), |
696 | }; | 696 | }; |
697 | 697 | ||
698 | static struct snd_kcontrol_new snd_pmac_awacs_speaker_vol[] __devinitdata = { | 698 | static struct snd_kcontrol_new snd_pmac_awacs_speaker_vol[] = { |
699 | AWACS_VOLUME("Speaker Playback Volume", 4, 6, 1), | 699 | AWACS_VOLUME("Speaker Playback Volume", 4, 6, 1), |
700 | }; | 700 | }; |
701 | 701 | ||
702 | static struct snd_kcontrol_new snd_pmac_awacs_speaker_sw __devinitdata = | 702 | static struct snd_kcontrol_new snd_pmac_awacs_speaker_sw = |
703 | AWACS_SWITCH("Speaker Playback Switch", 1, SHIFT_SPKMUTE, 1); | 703 | AWACS_SWITCH("Speaker Playback Switch", 1, SHIFT_SPKMUTE, 1); |
704 | 704 | ||
705 | static struct snd_kcontrol_new snd_pmac_awacs_speaker_sw_imac1 __devinitdata = | 705 | static struct snd_kcontrol_new snd_pmac_awacs_speaker_sw_imac1 = |
706 | AWACS_SWITCH("Speaker Playback Switch", 1, SHIFT_PAROUT1, 1); | 706 | AWACS_SWITCH("Speaker Playback Switch", 1, SHIFT_PAROUT1, 1); |
707 | 707 | ||
708 | static struct snd_kcontrol_new snd_pmac_awacs_speaker_sw_imac2 __devinitdata = | 708 | static struct snd_kcontrol_new snd_pmac_awacs_speaker_sw_imac2 = |
709 | AWACS_SWITCH("Speaker Playback Switch", 1, SHIFT_PAROUT1, 0); | 709 | AWACS_SWITCH("Speaker Playback Switch", 1, SHIFT_PAROUT1, 0); |
710 | 710 | ||
711 | 711 | ||
@@ -872,7 +872,7 @@ static void snd_pmac_awacs_update_automute(struct snd_pmac *chip, int do_notify) | |||
872 | /* | 872 | /* |
873 | * initialize chip | 873 | * initialize chip |
874 | */ | 874 | */ |
875 | int __devinit | 875 | int |
876 | snd_pmac_awacs_init(struct snd_pmac *chip) | 876 | snd_pmac_awacs_init(struct snd_pmac *chip) |
877 | { | 877 | { |
878 | int pm7500 = IS_PM7500; | 878 | int pm7500 = IS_PM7500; |
diff --git a/sound/ppc/beep.c b/sound/ppc/beep.c index a9d350789f55..0040f048221f 100644 --- a/sound/ppc/beep.c +++ b/sound/ppc/beep.c | |||
@@ -215,7 +215,7 @@ static struct snd_kcontrol_new snd_pmac_beep_mixer = { | |||
215 | }; | 215 | }; |
216 | 216 | ||
217 | /* Initialize beep stuff */ | 217 | /* Initialize beep stuff */ |
218 | int __devinit snd_pmac_attach_beep(struct snd_pmac *chip) | 218 | int snd_pmac_attach_beep(struct snd_pmac *chip) |
219 | { | 219 | { |
220 | struct pmac_beep *beep; | 220 | struct pmac_beep *beep; |
221 | struct input_dev *input_dev; | 221 | struct input_dev *input_dev; |
diff --git a/sound/ppc/burgundy.c b/sound/ppc/burgundy.c index 00e2d5166d0a..cb4f0a5e984e 100644 --- a/sound/ppc/burgundy.c +++ b/sound/ppc/burgundy.c | |||
@@ -467,7 +467,7 @@ static int snd_pmac_burgundy_put_switch_b(struct snd_kcontrol *kcontrol, | |||
467 | /* | 467 | /* |
468 | * Burgundy mixers | 468 | * Burgundy mixers |
469 | */ | 469 | */ |
470 | static struct snd_kcontrol_new snd_pmac_burgundy_mixers[] __devinitdata = { | 470 | static struct snd_kcontrol_new snd_pmac_burgundy_mixers[] = { |
471 | BURGUNDY_VOLUME_W("Master Playback Volume", 0, | 471 | BURGUNDY_VOLUME_W("Master Playback Volume", 0, |
472 | MASK_ADDR_BURGUNDY_MASTER_VOLUME, 8), | 472 | MASK_ADDR_BURGUNDY_MASTER_VOLUME, 8), |
473 | BURGUNDY_VOLUME_W("CD Capture Volume", 0, | 473 | BURGUNDY_VOLUME_W("CD Capture Volume", 0, |
@@ -495,7 +495,7 @@ static struct snd_kcontrol_new snd_pmac_burgundy_mixers[] __devinitdata = { | |||
495 | */ BURGUNDY_SWITCH_B("PCM Capture Switch", 0, | 495 | */ BURGUNDY_SWITCH_B("PCM Capture Switch", 0, |
496 | MASK_ADDR_BURGUNDY_HOSTIFEH, 0x01, 0, 0) | 496 | MASK_ADDR_BURGUNDY_HOSTIFEH, 0x01, 0, 0) |
497 | }; | 497 | }; |
498 | static struct snd_kcontrol_new snd_pmac_burgundy_mixers_imac[] __devinitdata = { | 498 | static struct snd_kcontrol_new snd_pmac_burgundy_mixers_imac[] = { |
499 | BURGUNDY_VOLUME_W("Line in Capture Volume", 0, | 499 | BURGUNDY_VOLUME_W("Line in Capture Volume", 0, |
500 | MASK_ADDR_BURGUNDY_VOLLINE, 16), | 500 | MASK_ADDR_BURGUNDY_VOLLINE, 16), |
501 | BURGUNDY_VOLUME_W("Mic Capture Volume", 0, | 501 | BURGUNDY_VOLUME_W("Mic Capture Volume", 0, |
@@ -521,7 +521,7 @@ static struct snd_kcontrol_new snd_pmac_burgundy_mixers_imac[] __devinitdata = { | |||
521 | BURGUNDY_SWITCH_B("Mic Boost Capture Switch", 0, | 521 | BURGUNDY_SWITCH_B("Mic Boost Capture Switch", 0, |
522 | MASK_ADDR_BURGUNDY_INPBOOST, 0x40, 0x80, 1) | 522 | MASK_ADDR_BURGUNDY_INPBOOST, 0x40, 0x80, 1) |
523 | }; | 523 | }; |
524 | static struct snd_kcontrol_new snd_pmac_burgundy_mixers_pmac[] __devinitdata = { | 524 | static struct snd_kcontrol_new snd_pmac_burgundy_mixers_pmac[] = { |
525 | BURGUNDY_VOLUME_W("Line in Capture Volume", 0, | 525 | BURGUNDY_VOLUME_W("Line in Capture Volume", 0, |
526 | MASK_ADDR_BURGUNDY_VOLMIC, 16), | 526 | MASK_ADDR_BURGUNDY_VOLMIC, 16), |
527 | BURGUNDY_VOLUME_B("Line in Gain Capture Volume", 0, | 527 | BURGUNDY_VOLUME_B("Line in Gain Capture Volume", 0, |
@@ -537,33 +537,33 @@ static struct snd_kcontrol_new snd_pmac_burgundy_mixers_pmac[] __devinitdata = { | |||
537 | /* BURGUNDY_SWITCH_B("Line in Boost Capture Switch", 0, | 537 | /* BURGUNDY_SWITCH_B("Line in Boost Capture Switch", 0, |
538 | * MASK_ADDR_BURGUNDY_INPBOOST, 0x40, 0x80, 1) */ | 538 | * MASK_ADDR_BURGUNDY_INPBOOST, 0x40, 0x80, 1) */ |
539 | }; | 539 | }; |
540 | static struct snd_kcontrol_new snd_pmac_burgundy_master_sw_imac __devinitdata = | 540 | static struct snd_kcontrol_new snd_pmac_burgundy_master_sw_imac = |
541 | BURGUNDY_SWITCH_B("Master Playback Switch", 0, | 541 | BURGUNDY_SWITCH_B("Master Playback Switch", 0, |
542 | MASK_ADDR_BURGUNDY_MORE_OUTPUTENABLES, | 542 | MASK_ADDR_BURGUNDY_MORE_OUTPUTENABLES, |
543 | BURGUNDY_OUTPUT_LEFT | BURGUNDY_LINEOUT_LEFT | BURGUNDY_HP_LEFT, | 543 | BURGUNDY_OUTPUT_LEFT | BURGUNDY_LINEOUT_LEFT | BURGUNDY_HP_LEFT, |
544 | BURGUNDY_OUTPUT_RIGHT | BURGUNDY_LINEOUT_RIGHT | BURGUNDY_HP_RIGHT, 1); | 544 | BURGUNDY_OUTPUT_RIGHT | BURGUNDY_LINEOUT_RIGHT | BURGUNDY_HP_RIGHT, 1); |
545 | static struct snd_kcontrol_new snd_pmac_burgundy_master_sw_pmac __devinitdata = | 545 | static struct snd_kcontrol_new snd_pmac_burgundy_master_sw_pmac = |
546 | BURGUNDY_SWITCH_B("Master Playback Switch", 0, | 546 | BURGUNDY_SWITCH_B("Master Playback Switch", 0, |
547 | MASK_ADDR_BURGUNDY_MORE_OUTPUTENABLES, | 547 | MASK_ADDR_BURGUNDY_MORE_OUTPUTENABLES, |
548 | BURGUNDY_OUTPUT_INTERN | 548 | BURGUNDY_OUTPUT_INTERN |
549 | | BURGUNDY_OUTPUT_LEFT, BURGUNDY_OUTPUT_RIGHT, 1); | 549 | | BURGUNDY_OUTPUT_LEFT, BURGUNDY_OUTPUT_RIGHT, 1); |
550 | static struct snd_kcontrol_new snd_pmac_burgundy_speaker_sw_imac __devinitdata = | 550 | static struct snd_kcontrol_new snd_pmac_burgundy_speaker_sw_imac = |
551 | BURGUNDY_SWITCH_B("Speaker Playback Switch", 0, | 551 | BURGUNDY_SWITCH_B("Speaker Playback Switch", 0, |
552 | MASK_ADDR_BURGUNDY_MORE_OUTPUTENABLES, | 552 | MASK_ADDR_BURGUNDY_MORE_OUTPUTENABLES, |
553 | BURGUNDY_OUTPUT_LEFT, BURGUNDY_OUTPUT_RIGHT, 1); | 553 | BURGUNDY_OUTPUT_LEFT, BURGUNDY_OUTPUT_RIGHT, 1); |
554 | static struct snd_kcontrol_new snd_pmac_burgundy_speaker_sw_pmac __devinitdata = | 554 | static struct snd_kcontrol_new snd_pmac_burgundy_speaker_sw_pmac = |
555 | BURGUNDY_SWITCH_B("Speaker Playback Switch", 0, | 555 | BURGUNDY_SWITCH_B("Speaker Playback Switch", 0, |
556 | MASK_ADDR_BURGUNDY_MORE_OUTPUTENABLES, | 556 | MASK_ADDR_BURGUNDY_MORE_OUTPUTENABLES, |
557 | BURGUNDY_OUTPUT_INTERN, 0, 0); | 557 | BURGUNDY_OUTPUT_INTERN, 0, 0); |
558 | static struct snd_kcontrol_new snd_pmac_burgundy_line_sw_imac __devinitdata = | 558 | static struct snd_kcontrol_new snd_pmac_burgundy_line_sw_imac = |
559 | BURGUNDY_SWITCH_B("Line out Playback Switch", 0, | 559 | BURGUNDY_SWITCH_B("Line out Playback Switch", 0, |
560 | MASK_ADDR_BURGUNDY_MORE_OUTPUTENABLES, | 560 | MASK_ADDR_BURGUNDY_MORE_OUTPUTENABLES, |
561 | BURGUNDY_LINEOUT_LEFT, BURGUNDY_LINEOUT_RIGHT, 1); | 561 | BURGUNDY_LINEOUT_LEFT, BURGUNDY_LINEOUT_RIGHT, 1); |
562 | static struct snd_kcontrol_new snd_pmac_burgundy_line_sw_pmac __devinitdata = | 562 | static struct snd_kcontrol_new snd_pmac_burgundy_line_sw_pmac = |
563 | BURGUNDY_SWITCH_B("Line out Playback Switch", 0, | 563 | BURGUNDY_SWITCH_B("Line out Playback Switch", 0, |
564 | MASK_ADDR_BURGUNDY_MORE_OUTPUTENABLES, | 564 | MASK_ADDR_BURGUNDY_MORE_OUTPUTENABLES, |
565 | BURGUNDY_OUTPUT_LEFT, BURGUNDY_OUTPUT_RIGHT, 1); | 565 | BURGUNDY_OUTPUT_LEFT, BURGUNDY_OUTPUT_RIGHT, 1); |
566 | static struct snd_kcontrol_new snd_pmac_burgundy_hp_sw_imac __devinitdata = | 566 | static struct snd_kcontrol_new snd_pmac_burgundy_hp_sw_imac = |
567 | BURGUNDY_SWITCH_B("Headphone Playback Switch", 0, | 567 | BURGUNDY_SWITCH_B("Headphone Playback Switch", 0, |
568 | MASK_ADDR_BURGUNDY_MORE_OUTPUTENABLES, | 568 | MASK_ADDR_BURGUNDY_MORE_OUTPUTENABLES, |
569 | BURGUNDY_HP_LEFT, BURGUNDY_HP_RIGHT, 1); | 569 | BURGUNDY_HP_LEFT, BURGUNDY_HP_RIGHT, 1); |
@@ -617,7 +617,7 @@ static void snd_pmac_burgundy_update_automute(struct snd_pmac *chip, int do_noti | |||
617 | /* | 617 | /* |
618 | * initialize burgundy | 618 | * initialize burgundy |
619 | */ | 619 | */ |
620 | int __devinit snd_pmac_burgundy_init(struct snd_pmac *chip) | 620 | int snd_pmac_burgundy_init(struct snd_pmac *chip) |
621 | { | 621 | { |
622 | int imac = of_machine_is_compatible("iMac"); | 622 | int imac = of_machine_is_compatible("iMac"); |
623 | int i, err; | 623 | int i, err; |
diff --git a/sound/ppc/daca.c b/sound/ppc/daca.c index 24200b7bdace..b86526223e4e 100644 --- a/sound/ppc/daca.c +++ b/sound/ppc/daca.c | |||
@@ -244,7 +244,7 @@ static void daca_cleanup(struct snd_pmac *chip) | |||
244 | } | 244 | } |
245 | 245 | ||
246 | /* exported */ | 246 | /* exported */ |
247 | int __devinit snd_pmac_daca_init(struct snd_pmac *chip) | 247 | int snd_pmac_daca_init(struct snd_pmac *chip) |
248 | { | 248 | { |
249 | int i, err; | 249 | int i, err; |
250 | struct pmac_daca *mix; | 250 | struct pmac_daca *mix; |
diff --git a/sound/ppc/keywest.c b/sound/ppc/keywest.c index 4080becf4cef..01aecc2b5073 100644 --- a/sound/ppc/keywest.c +++ b/sound/ppc/keywest.c | |||
@@ -115,7 +115,7 @@ void snd_pmac_keywest_cleanup(struct pmac_keywest *i2c) | |||
115 | } | 115 | } |
116 | } | 116 | } |
117 | 117 | ||
118 | int __devinit snd_pmac_tumbler_post_init(void) | 118 | int snd_pmac_tumbler_post_init(void) |
119 | { | 119 | { |
120 | int err; | 120 | int err; |
121 | 121 | ||
@@ -130,7 +130,7 @@ int __devinit snd_pmac_tumbler_post_init(void) | |||
130 | } | 130 | } |
131 | 131 | ||
132 | /* exported */ | 132 | /* exported */ |
133 | int __devinit snd_pmac_keywest_init(struct pmac_keywest *i2c) | 133 | int snd_pmac_keywest_init(struct pmac_keywest *i2c) |
134 | { | 134 | { |
135 | int err; | 135 | int err; |
136 | 136 | ||
diff --git a/sound/ppc/pmac.c b/sound/ppc/pmac.c index ab96cde7417b..c93fbbb201fe 100644 --- a/sound/ppc/pmac.c +++ b/sound/ppc/pmac.c | |||
@@ -702,7 +702,7 @@ static struct snd_pcm_ops snd_pmac_capture_ops = { | |||
702 | .pointer = snd_pmac_capture_pointer, | 702 | .pointer = snd_pmac_capture_pointer, |
703 | }; | 703 | }; |
704 | 704 | ||
705 | int __devinit snd_pmac_pcm_new(struct snd_pmac *chip) | 705 | int snd_pmac_pcm_new(struct snd_pmac *chip) |
706 | { | 706 | { |
707 | struct snd_pcm *pcm; | 707 | struct snd_pcm *pcm; |
708 | int err; | 708 | int err; |
@@ -907,7 +907,7 @@ static int snd_pmac_dev_free(struct snd_device *device) | |||
907 | * check the machine support byteswap (little-endian) | 907 | * check the machine support byteswap (little-endian) |
908 | */ | 908 | */ |
909 | 909 | ||
910 | static void __devinit detect_byte_swap(struct snd_pmac *chip) | 910 | static void detect_byte_swap(struct snd_pmac *chip) |
911 | { | 911 | { |
912 | struct device_node *mio; | 912 | struct device_node *mio; |
913 | 913 | ||
@@ -933,7 +933,7 @@ static void __devinit detect_byte_swap(struct snd_pmac *chip) | |||
933 | /* | 933 | /* |
934 | * detect a sound chip | 934 | * detect a sound chip |
935 | */ | 935 | */ |
936 | static int __devinit snd_pmac_detect(struct snd_pmac *chip) | 936 | static int snd_pmac_detect(struct snd_pmac *chip) |
937 | { | 937 | { |
938 | struct device_node *sound; | 938 | struct device_node *sound; |
939 | struct device_node *dn; | 939 | struct device_node *dn; |
@@ -1146,7 +1146,7 @@ static int pmac_hp_detect_get(struct snd_kcontrol *kcontrol, | |||
1146 | return 0; | 1146 | return 0; |
1147 | } | 1147 | } |
1148 | 1148 | ||
1149 | static struct snd_kcontrol_new auto_mute_controls[] __devinitdata = { | 1149 | static struct snd_kcontrol_new auto_mute_controls[] = { |
1150 | { .iface = SNDRV_CTL_ELEM_IFACE_MIXER, | 1150 | { .iface = SNDRV_CTL_ELEM_IFACE_MIXER, |
1151 | .name = "Auto Mute Switch", | 1151 | .name = "Auto Mute Switch", |
1152 | .info = snd_pmac_boolean_mono_info, | 1152 | .info = snd_pmac_boolean_mono_info, |
@@ -1161,7 +1161,7 @@ static struct snd_kcontrol_new auto_mute_controls[] __devinitdata = { | |||
1161 | }, | 1161 | }, |
1162 | }; | 1162 | }; |
1163 | 1163 | ||
1164 | int __devinit snd_pmac_add_automute(struct snd_pmac *chip) | 1164 | int snd_pmac_add_automute(struct snd_pmac *chip) |
1165 | { | 1165 | { |
1166 | int err; | 1166 | int err; |
1167 | chip->auto_mute = 1; | 1167 | chip->auto_mute = 1; |
@@ -1178,7 +1178,7 @@ int __devinit snd_pmac_add_automute(struct snd_pmac *chip) | |||
1178 | /* | 1178 | /* |
1179 | * create and detect a pmac chip record | 1179 | * create and detect a pmac chip record |
1180 | */ | 1180 | */ |
1181 | int __devinit snd_pmac_new(struct snd_card *card, struct snd_pmac **chip_return) | 1181 | int snd_pmac_new(struct snd_card *card, struct snd_pmac **chip_return) |
1182 | { | 1182 | { |
1183 | struct snd_pmac *chip; | 1183 | struct snd_pmac *chip; |
1184 | struct device_node *np; | 1184 | struct device_node *np; |
diff --git a/sound/ppc/powermac.c b/sound/ppc/powermac.c index 210cafe04890..09fc848d32ec 100644 --- a/sound/ppc/powermac.c +++ b/sound/ppc/powermac.c | |||
@@ -51,7 +51,7 @@ static struct platform_device *device; | |||
51 | /* | 51 | /* |
52 | */ | 52 | */ |
53 | 53 | ||
54 | static int __devinit snd_pmac_probe(struct platform_device *devptr) | 54 | static int snd_pmac_probe(struct platform_device *devptr) |
55 | { | 55 | { |
56 | struct snd_card *card; | 56 | struct snd_card *card; |
57 | struct snd_pmac *chip; | 57 | struct snd_pmac *chip; |
@@ -136,7 +136,7 @@ __error: | |||
136 | } | 136 | } |
137 | 137 | ||
138 | 138 | ||
139 | static int __devexit snd_pmac_remove(struct platform_device *devptr) | 139 | static int snd_pmac_remove(struct platform_device *devptr) |
140 | { | 140 | { |
141 | snd_card_free(platform_get_drvdata(devptr)); | 141 | snd_card_free(platform_get_drvdata(devptr)); |
142 | platform_set_drvdata(devptr, NULL); | 142 | platform_set_drvdata(devptr, NULL); |
@@ -168,7 +168,7 @@ static SIMPLE_DEV_PM_OPS(snd_pmac_pm, snd_pmac_driver_suspend, snd_pmac_driver_r | |||
168 | 168 | ||
169 | static struct platform_driver snd_pmac_driver = { | 169 | static struct platform_driver snd_pmac_driver = { |
170 | .probe = snd_pmac_probe, | 170 | .probe = snd_pmac_probe, |
171 | .remove = __devexit_p(snd_pmac_remove), | 171 | .remove = snd_pmac_remove, |
172 | .driver = { | 172 | .driver = { |
173 | .name = SND_PMAC_DRIVER, | 173 | .name = SND_PMAC_DRIVER, |
174 | .owner = THIS_MODULE, | 174 | .owner = THIS_MODULE, |
diff --git a/sound/ppc/tumbler.c b/sound/ppc/tumbler.c index 9cea84c3e0c6..b23354a4ceca 100644 --- a/sound/ppc/tumbler.c +++ b/sound/ppc/tumbler.c | |||
@@ -844,7 +844,7 @@ static int snapper_put_capture_source(struct snd_kcontrol *kcontrol, | |||
844 | 844 | ||
845 | /* | 845 | /* |
846 | */ | 846 | */ |
847 | static struct snd_kcontrol_new tumbler_mixers[] __devinitdata = { | 847 | static struct snd_kcontrol_new tumbler_mixers[] = { |
848 | { .iface = SNDRV_CTL_ELEM_IFACE_MIXER, | 848 | { .iface = SNDRV_CTL_ELEM_IFACE_MIXER, |
849 | .name = "Master Playback Volume", | 849 | .name = "Master Playback Volume", |
850 | .info = tumbler_info_master_volume, | 850 | .info = tumbler_info_master_volume, |
@@ -868,7 +868,7 @@ static struct snd_kcontrol_new tumbler_mixers[] __devinitdata = { | |||
868 | }, | 868 | }, |
869 | }; | 869 | }; |
870 | 870 | ||
871 | static struct snd_kcontrol_new snapper_mixers[] __devinitdata = { | 871 | static struct snd_kcontrol_new snapper_mixers[] = { |
872 | { .iface = SNDRV_CTL_ELEM_IFACE_MIXER, | 872 | { .iface = SNDRV_CTL_ELEM_IFACE_MIXER, |
873 | .name = "Master Playback Volume", | 873 | .name = "Master Playback Volume", |
874 | .info = tumbler_info_master_volume, | 874 | .info = tumbler_info_master_volume, |
@@ -901,7 +901,7 @@ static struct snd_kcontrol_new snapper_mixers[] __devinitdata = { | |||
901 | }, | 901 | }, |
902 | }; | 902 | }; |
903 | 903 | ||
904 | static struct snd_kcontrol_new tumbler_hp_sw __devinitdata = { | 904 | static struct snd_kcontrol_new tumbler_hp_sw = { |
905 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, | 905 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, |
906 | .name = "Headphone Playback Switch", | 906 | .name = "Headphone Playback Switch", |
907 | .info = snd_pmac_boolean_mono_info, | 907 | .info = snd_pmac_boolean_mono_info, |
@@ -909,7 +909,7 @@ static struct snd_kcontrol_new tumbler_hp_sw __devinitdata = { | |||
909 | .put = tumbler_put_mute_switch, | 909 | .put = tumbler_put_mute_switch, |
910 | .private_value = TUMBLER_MUTE_HP, | 910 | .private_value = TUMBLER_MUTE_HP, |
911 | }; | 911 | }; |
912 | static struct snd_kcontrol_new tumbler_speaker_sw __devinitdata = { | 912 | static struct snd_kcontrol_new tumbler_speaker_sw = { |
913 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, | 913 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, |
914 | .name = "Speaker Playback Switch", | 914 | .name = "Speaker Playback Switch", |
915 | .info = snd_pmac_boolean_mono_info, | 915 | .info = snd_pmac_boolean_mono_info, |
@@ -917,7 +917,7 @@ static struct snd_kcontrol_new tumbler_speaker_sw __devinitdata = { | |||
917 | .put = tumbler_put_mute_switch, | 917 | .put = tumbler_put_mute_switch, |
918 | .private_value = TUMBLER_MUTE_AMP, | 918 | .private_value = TUMBLER_MUTE_AMP, |
919 | }; | 919 | }; |
920 | static struct snd_kcontrol_new tumbler_lineout_sw __devinitdata = { | 920 | static struct snd_kcontrol_new tumbler_lineout_sw = { |
921 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, | 921 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, |
922 | .name = "Line Out Playback Switch", | 922 | .name = "Line Out Playback Switch", |
923 | .info = snd_pmac_boolean_mono_info, | 923 | .info = snd_pmac_boolean_mono_info, |
@@ -925,7 +925,7 @@ static struct snd_kcontrol_new tumbler_lineout_sw __devinitdata = { | |||
925 | .put = tumbler_put_mute_switch, | 925 | .put = tumbler_put_mute_switch, |
926 | .private_value = TUMBLER_MUTE_LINE, | 926 | .private_value = TUMBLER_MUTE_LINE, |
927 | }; | 927 | }; |
928 | static struct snd_kcontrol_new tumbler_drc_sw __devinitdata = { | 928 | static struct snd_kcontrol_new tumbler_drc_sw = { |
929 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, | 929 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, |
930 | .name = "DRC Switch", | 930 | .name = "DRC Switch", |
931 | .info = snd_pmac_boolean_mono_info, | 931 | .info = snd_pmac_boolean_mono_info, |
@@ -1276,7 +1276,7 @@ static void tumbler_resume(struct snd_pmac *chip) | |||
1276 | #endif | 1276 | #endif |
1277 | 1277 | ||
1278 | /* initialize tumbler */ | 1278 | /* initialize tumbler */ |
1279 | static int __devinit tumbler_init(struct snd_pmac *chip) | 1279 | static int tumbler_init(struct snd_pmac *chip) |
1280 | { | 1280 | { |
1281 | int irq; | 1281 | int irq; |
1282 | struct pmac_tumbler *mix = chip->mixer_data; | 1282 | struct pmac_tumbler *mix = chip->mixer_data; |
@@ -1349,7 +1349,7 @@ static void tumbler_cleanup(struct snd_pmac *chip) | |||
1349 | } | 1349 | } |
1350 | 1350 | ||
1351 | /* exported */ | 1351 | /* exported */ |
1352 | int __devinit snd_pmac_tumbler_init(struct snd_pmac *chip) | 1352 | int snd_pmac_tumbler_init(struct snd_pmac *chip) |
1353 | { | 1353 | { |
1354 | int i, err; | 1354 | int i, err; |
1355 | struct pmac_tumbler *mix; | 1355 | struct pmac_tumbler *mix; |