aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci/intel8x0.c
diff options
context:
space:
mode:
authorBill Pemberton <wfp5p@virginia.edu>2012-12-06 12:35:10 -0500
committerTakashi Iwai <tiwai@suse.de>2012-12-07 01:20:55 -0500
commite23e7a1436207217000c2854214bc908936af3cb (patch)
treeaebb83a4e59dde76a79ac60b51b67849c75c545b /sound/pci/intel8x0.c
parent445a51b353c35fe54840c10352ef51152fbb94df (diff)
ALSA: pci: 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/pci/intel8x0.c')
-rw-r--r--sound/pci/intel8x0.c56
1 files changed, 28 insertions, 28 deletions
diff --git a/sound/pci/intel8x0.c b/sound/pci/intel8x0.c
index ea4b706c8d63..3b9be752f3e2 100644
--- a/sound/pci/intel8x0.c
+++ b/sound/pci/intel8x0.c
@@ -592,8 +592,8 @@ static unsigned short snd_intel8x0_codec_read(struct snd_ac97 *ac97,
592 return res; 592 return res;
593} 593}
594 594
595static void __devinit snd_intel8x0_codec_read_test(struct intel8x0 *chip, 595static void snd_intel8x0_codec_read_test(struct intel8x0 *chip,
596 unsigned int codec) 596 unsigned int codec)
597{ 597{
598 unsigned int tmp; 598 unsigned int tmp;
599 599
@@ -1507,8 +1507,8 @@ struct ich_pcm_table {
1507 int ac97_idx; 1507 int ac97_idx;
1508}; 1508};
1509 1509
1510static int __devinit snd_intel8x0_pcm1(struct intel8x0 *chip, int device, 1510static int snd_intel8x0_pcm1(struct intel8x0 *chip, int device,
1511 struct ich_pcm_table *rec) 1511 struct ich_pcm_table *rec)
1512{ 1512{
1513 struct snd_pcm *pcm; 1513 struct snd_pcm *pcm;
1514 int err; 1514 int err;
@@ -1564,7 +1564,7 @@ static int __devinit snd_intel8x0_pcm1(struct intel8x0 *chip, int device,
1564 return 0; 1564 return 0;
1565} 1565}
1566 1566
1567static struct ich_pcm_table intel_pcms[] __devinitdata = { 1567static struct ich_pcm_table intel_pcms[] = {
1568 { 1568 {
1569 .playback_ops = &snd_intel8x0_playback_ops, 1569 .playback_ops = &snd_intel8x0_playback_ops,
1570 .capture_ops = &snd_intel8x0_capture_ops, 1570 .capture_ops = &snd_intel8x0_capture_ops,
@@ -1601,7 +1601,7 @@ static struct ich_pcm_table intel_pcms[] __devinitdata = {
1601 }, 1601 },
1602}; 1602};
1603 1603
1604static struct ich_pcm_table nforce_pcms[] __devinitdata = { 1604static struct ich_pcm_table nforce_pcms[] = {
1605 { 1605 {
1606 .playback_ops = &snd_intel8x0_playback_ops, 1606 .playback_ops = &snd_intel8x0_playback_ops,
1607 .capture_ops = &snd_intel8x0_capture_ops, 1607 .capture_ops = &snd_intel8x0_capture_ops,
@@ -1624,7 +1624,7 @@ static struct ich_pcm_table nforce_pcms[] __devinitdata = {
1624 }, 1624 },
1625}; 1625};
1626 1626
1627static struct ich_pcm_table ali_pcms[] __devinitdata = { 1627static struct ich_pcm_table ali_pcms[] = {
1628 { 1628 {
1629 .playback_ops = &snd_intel8x0_ali_playback_ops, 1629 .playback_ops = &snd_intel8x0_ali_playback_ops,
1630 .capture_ops = &snd_intel8x0_ali_capture_ops, 1630 .capture_ops = &snd_intel8x0_ali_capture_ops,
@@ -1656,7 +1656,7 @@ static struct ich_pcm_table ali_pcms[] __devinitdata = {
1656#endif 1656#endif
1657}; 1657};
1658 1658
1659static int __devinit snd_intel8x0_pcm(struct intel8x0 *chip) 1659static int snd_intel8x0_pcm(struct intel8x0 *chip)
1660{ 1660{
1661 int i, tblsize, device, err; 1661 int i, tblsize, device, err;
1662 struct ich_pcm_table *tbl, *rec; 1662 struct ich_pcm_table *tbl, *rec;
@@ -1719,7 +1719,7 @@ static void snd_intel8x0_mixer_free_ac97(struct snd_ac97 *ac97)
1719 chip->ac97[ac97->num] = NULL; 1719 chip->ac97[ac97->num] = NULL;
1720} 1720}
1721 1721
1722static struct ac97_pcm ac97_pcm_defs[] __devinitdata = { 1722static struct ac97_pcm ac97_pcm_defs[] = {
1723 /* front PCM */ 1723 /* front PCM */
1724 { 1724 {
1725 .exclusive = 1, 1725 .exclusive = 1,
@@ -1789,7 +1789,7 @@ static struct ac97_pcm ac97_pcm_defs[] __devinitdata = {
1789 }, 1789 },
1790}; 1790};
1791 1791
1792static struct ac97_quirk ac97_quirks[] __devinitdata = { 1792static struct ac97_quirk ac97_quirks[] = {
1793 { 1793 {
1794 .subvendor = 0x0e11, 1794 .subvendor = 0x0e11,
1795 .subdevice = 0x000e, 1795 .subdevice = 0x000e,
@@ -2196,8 +2196,8 @@ static struct ac97_quirk ac97_quirks[] __devinitdata = {
2196 { } /* terminator */ 2196 { } /* terminator */
2197}; 2197};
2198 2198
2199static int __devinit snd_intel8x0_mixer(struct intel8x0 *chip, int ac97_clock, 2199static int snd_intel8x0_mixer(struct intel8x0 *chip, int ac97_clock,
2200 const char *quirk_override) 2200 const char *quirk_override)
2201{ 2201{
2202 struct snd_ac97_bus *pbus; 2202 struct snd_ac97_bus *pbus;
2203 struct snd_ac97_template ac97; 2203 struct snd_ac97_template ac97;
@@ -2765,7 +2765,7 @@ static SIMPLE_DEV_PM_OPS(intel8x0_pm, intel8x0_suspend, intel8x0_resume);
2765 2765
2766#define INTEL8X0_TESTBUF_SIZE 32768 /* enough large for one shot */ 2766#define INTEL8X0_TESTBUF_SIZE 32768 /* enough large for one shot */
2767 2767
2768static void __devinit intel8x0_measure_ac97_clock(struct intel8x0 *chip) 2768static void intel8x0_measure_ac97_clock(struct intel8x0 *chip)
2769{ 2769{
2770 struct snd_pcm_substream *subs; 2770 struct snd_pcm_substream *subs;
2771 struct ichdev *ichdev; 2771 struct ichdev *ichdev;
@@ -2883,7 +2883,7 @@ static void __devinit intel8x0_measure_ac97_clock(struct intel8x0 *chip)
2883 snd_ac97_update_power(chip->ac97[0], AC97_PCM_FRONT_DAC_RATE, 0); 2883 snd_ac97_update_power(chip->ac97[0], AC97_PCM_FRONT_DAC_RATE, 0);
2884} 2884}
2885 2885
2886static struct snd_pci_quirk intel8x0_clock_list[] __devinitdata = { 2886static struct snd_pci_quirk intel8x0_clock_list[] = {
2887 SND_PCI_QUIRK(0x0e11, 0x008a, "AD1885", 41000), 2887 SND_PCI_QUIRK(0x0e11, 0x008a, "AD1885", 41000),
2888 SND_PCI_QUIRK(0x1028, 0x00be, "AD1885", 44100), 2888 SND_PCI_QUIRK(0x1028, 0x00be, "AD1885", 44100),
2889 SND_PCI_QUIRK(0x1028, 0x0177, "AD1980", 48000), 2889 SND_PCI_QUIRK(0x1028, 0x0177, "AD1980", 48000),
@@ -2892,7 +2892,7 @@ static struct snd_pci_quirk intel8x0_clock_list[] __devinitdata = {
2892 { } /* terminator */ 2892 { } /* terminator */
2893}; 2893};
2894 2894
2895static int __devinit intel8x0_in_clock_list(struct intel8x0 *chip) 2895static int intel8x0_in_clock_list(struct intel8x0 *chip)
2896{ 2896{
2897 struct pci_dev *pci = chip->pci; 2897 struct pci_dev *pci = chip->pci;
2898 const struct snd_pci_quirk *wl; 2898 const struct snd_pci_quirk *wl;
@@ -2941,7 +2941,7 @@ static void snd_intel8x0_proc_read(struct snd_info_entry * entry,
2941 chip->ac97_sdin[2]); 2941 chip->ac97_sdin[2]);
2942} 2942}
2943 2943
2944static void __devinit snd_intel8x0_proc_init(struct intel8x0 * chip) 2944static void snd_intel8x0_proc_init(struct intel8x0 *chip)
2945{ 2945{
2946 struct snd_info_entry *entry; 2946 struct snd_info_entry *entry;
2947 2947
@@ -2970,7 +2970,7 @@ static unsigned int sis_codec_bits[3] = {
2970 ICH_PCR, ICH_SCR, ICH_SIS_TCR 2970 ICH_PCR, ICH_SCR, ICH_SIS_TCR
2971}; 2971};
2972 2972
2973static int __devinit snd_intel8x0_inside_vm(struct pci_dev *pci) 2973static int snd_intel8x0_inside_vm(struct pci_dev *pci)
2974{ 2974{
2975 int result = inside_vm; 2975 int result = inside_vm;
2976 char *msg = NULL; 2976 char *msg = NULL;
@@ -3009,10 +3009,10 @@ fini:
3009 return result; 3009 return result;
3010} 3010}
3011 3011
3012static int __devinit snd_intel8x0_create(struct snd_card *card, 3012static int snd_intel8x0_create(struct snd_card *card,
3013 struct pci_dev *pci, 3013 struct pci_dev *pci,
3014 unsigned long device_type, 3014 unsigned long device_type,
3015 struct intel8x0 ** r_intel8x0) 3015 struct intel8x0 **r_intel8x0)
3016{ 3016{
3017 struct intel8x0 *chip; 3017 struct intel8x0 *chip;
3018 int err; 3018 int err;
@@ -3227,7 +3227,7 @@ static int __devinit snd_intel8x0_create(struct snd_card *card,
3227static struct shortname_table { 3227static struct shortname_table {
3228 unsigned int id; 3228 unsigned int id;
3229 const char *s; 3229 const char *s;
3230} shortnames[] __devinitdata = { 3230} shortnames[] = {
3231 { PCI_DEVICE_ID_INTEL_82801AA_5, "Intel 82801AA-ICH" }, 3231 { PCI_DEVICE_ID_INTEL_82801AA_5, "Intel 82801AA-ICH" },
3232 { PCI_DEVICE_ID_INTEL_82801AB_5, "Intel 82901AB-ICH0" }, 3232 { PCI_DEVICE_ID_INTEL_82801AB_5, "Intel 82901AB-ICH0" },
3233 { PCI_DEVICE_ID_INTEL_82801BA_4, "Intel 82801BA-ICH2" }, 3233 { PCI_DEVICE_ID_INTEL_82801BA_4, "Intel 82801BA-ICH2" },
@@ -3253,13 +3253,13 @@ static struct shortname_table {
3253 { 0, NULL }, 3253 { 0, NULL },
3254}; 3254};
3255 3255
3256static struct snd_pci_quirk spdif_aclink_defaults[] __devinitdata = { 3256static struct snd_pci_quirk spdif_aclink_defaults[] = {
3257 SND_PCI_QUIRK(0x147b, 0x1c1a, "ASUS KN8", 1), 3257 SND_PCI_QUIRK(0x147b, 0x1c1a, "ASUS KN8", 1),
3258 { } /* end */ 3258 { } /* end */
3259}; 3259};
3260 3260
3261/* look up white/black list for SPDIF over ac-link */ 3261/* look up white/black list for SPDIF over ac-link */
3262static int __devinit check_default_spdif_aclink(struct pci_dev *pci) 3262static int check_default_spdif_aclink(struct pci_dev *pci)
3263{ 3263{
3264 const struct snd_pci_quirk *w; 3264 const struct snd_pci_quirk *w;
3265 3265
@@ -3276,8 +3276,8 @@ static int __devinit check_default_spdif_aclink(struct pci_dev *pci)
3276 return 0; 3276 return 0;
3277} 3277}
3278 3278
3279static int __devinit snd_intel8x0_probe(struct pci_dev *pci, 3279static int snd_intel8x0_probe(struct pci_dev *pci,
3280 const struct pci_device_id *pci_id) 3280 const struct pci_device_id *pci_id)
3281{ 3281{
3282 struct snd_card *card; 3282 struct snd_card *card;
3283 struct intel8x0 *chip; 3283 struct intel8x0 *chip;
@@ -3359,7 +3359,7 @@ static int __devinit snd_intel8x0_probe(struct pci_dev *pci,
3359 return 0; 3359 return 0;
3360} 3360}
3361 3361
3362static void __devexit snd_intel8x0_remove(struct pci_dev *pci) 3362static void snd_intel8x0_remove(struct pci_dev *pci)
3363{ 3363{
3364 snd_card_free(pci_get_drvdata(pci)); 3364 snd_card_free(pci_get_drvdata(pci));
3365 pci_set_drvdata(pci, NULL); 3365 pci_set_drvdata(pci, NULL);
@@ -3369,7 +3369,7 @@ static struct pci_driver intel8x0_driver = {
3369 .name = KBUILD_MODNAME, 3369 .name = KBUILD_MODNAME,
3370 .id_table = snd_intel8x0_ids, 3370 .id_table = snd_intel8x0_ids,
3371 .probe = snd_intel8x0_probe, 3371 .probe = snd_intel8x0_probe,
3372 .remove = __devexit_p(snd_intel8x0_remove), 3372 .remove = snd_intel8x0_remove,
3373 .driver = { 3373 .driver = {
3374 .pm = INTEL8X0_PM_OPS, 3374 .pm = INTEL8X0_PM_OPS,
3375 }, 3375 },