diff options
Diffstat (limited to 'sound/pci/hda')
-rw-r--r-- | sound/pci/hda/hda_intel.c | 48 |
1 files changed, 24 insertions, 24 deletions
diff --git a/sound/pci/hda/hda_intel.c b/sound/pci/hda/hda_intel.c index eb481090d372..335685e0e4ea 100644 --- a/sound/pci/hda/hda_intel.c +++ b/sound/pci/hda/hda_intel.c | |||
@@ -607,8 +607,8 @@ enum { | |||
607 | #define DELAYED_INIT_MARK | 607 | #define DELAYED_INIT_MARK |
608 | #define DELAYED_INITDATA_MARK | 608 | #define DELAYED_INITDATA_MARK |
609 | #else | 609 | #else |
610 | #define DELAYED_INIT_MARK __devinit | 610 | #define DELAYED_INIT_MARK |
611 | #define DELAYED_INITDATA_MARK __devinitdata | 611 | #define DELAYED_INITDATA_MARK |
612 | #endif | 612 | #endif |
613 | 613 | ||
614 | static char *driver_short_names[] DELAYED_INITDATA_MARK = { | 614 | static char *driver_short_names[] DELAYED_INITDATA_MARK = { |
@@ -1717,7 +1717,7 @@ static int DELAYED_INIT_MARK azx_codec_create(struct azx *chip, const char *mode | |||
1717 | } | 1717 | } |
1718 | 1718 | ||
1719 | /* configure each codec instance */ | 1719 | /* configure each codec instance */ |
1720 | static int __devinit azx_codec_configure(struct azx *chip) | 1720 | static int azx_codec_configure(struct azx *chip) |
1721 | { | 1721 | { |
1722 | struct hda_codec *codec; | 1722 | struct hda_codec *codec; |
1723 | list_for_each_entry(codec, &chip->bus->codec_list, list) { | 1723 | list_for_each_entry(codec, &chip->bus->codec_list, list) { |
@@ -2489,7 +2489,7 @@ azx_attach_pcm_stream(struct hda_bus *bus, struct hda_codec *codec, | |||
2489 | /* | 2489 | /* |
2490 | * mixer creation - all stuff is implemented in hda module | 2490 | * mixer creation - all stuff is implemented in hda module |
2491 | */ | 2491 | */ |
2492 | static int __devinit azx_mixer_create(struct azx *chip) | 2492 | static int azx_mixer_create(struct azx *chip) |
2493 | { | 2493 | { |
2494 | return snd_hda_build_controls(chip->bus); | 2494 | return snd_hda_build_controls(chip->bus); |
2495 | } | 2495 | } |
@@ -2498,7 +2498,7 @@ static int __devinit azx_mixer_create(struct azx *chip) | |||
2498 | /* | 2498 | /* |
2499 | * initialize SD streams | 2499 | * initialize SD streams |
2500 | */ | 2500 | */ |
2501 | static int __devinit azx_init_stream(struct azx *chip) | 2501 | static int azx_init_stream(struct azx *chip) |
2502 | { | 2502 | { |
2503 | int i; | 2503 | int i; |
2504 | 2504 | ||
@@ -2740,7 +2740,7 @@ static int DELAYED_INIT_MARK azx_first_init(struct azx *chip); | |||
2740 | static int DELAYED_INIT_MARK azx_probe_continue(struct azx *chip); | 2740 | static int DELAYED_INIT_MARK azx_probe_continue(struct azx *chip); |
2741 | 2741 | ||
2742 | #ifdef SUPPORT_VGA_SWITCHEROO | 2742 | #ifdef SUPPORT_VGA_SWITCHEROO |
2743 | static struct pci_dev __devinit *get_bound_vga(struct pci_dev *pci); | 2743 | static struct pci_dev *get_bound_vga(struct pci_dev *pci); |
2744 | 2744 | ||
2745 | static void azx_vs_set_state(struct pci_dev *pci, | 2745 | static void azx_vs_set_state(struct pci_dev *pci, |
2746 | enum vga_switcheroo_state state) | 2746 | enum vga_switcheroo_state state) |
@@ -2805,7 +2805,7 @@ static bool azx_vs_can_switch(struct pci_dev *pci) | |||
2805 | return true; | 2805 | return true; |
2806 | } | 2806 | } |
2807 | 2807 | ||
2808 | static void __devinit init_vga_switcheroo(struct azx *chip) | 2808 | static void init_vga_switcheroo(struct azx *chip) |
2809 | { | 2809 | { |
2810 | struct pci_dev *p = get_bound_vga(chip->pci); | 2810 | struct pci_dev *p = get_bound_vga(chip->pci); |
2811 | if (p) { | 2811 | if (p) { |
@@ -2822,7 +2822,7 @@ static const struct vga_switcheroo_client_ops azx_vs_ops = { | |||
2822 | .can_switch = azx_vs_can_switch, | 2822 | .can_switch = azx_vs_can_switch, |
2823 | }; | 2823 | }; |
2824 | 2824 | ||
2825 | static int __devinit register_vga_switcheroo(struct azx *chip) | 2825 | static int register_vga_switcheroo(struct azx *chip) |
2826 | { | 2826 | { |
2827 | int err; | 2827 | int err; |
2828 | 2828 | ||
@@ -2917,7 +2917,7 @@ static int azx_dev_free(struct snd_device *device) | |||
2917 | /* | 2917 | /* |
2918 | * Check of disabled HDMI controller by vga-switcheroo | 2918 | * Check of disabled HDMI controller by vga-switcheroo |
2919 | */ | 2919 | */ |
2920 | static struct pci_dev __devinit *get_bound_vga(struct pci_dev *pci) | 2920 | static struct pci_dev *get_bound_vga(struct pci_dev *pci) |
2921 | { | 2921 | { |
2922 | struct pci_dev *p; | 2922 | struct pci_dev *p; |
2923 | 2923 | ||
@@ -2940,7 +2940,7 @@ static struct pci_dev __devinit *get_bound_vga(struct pci_dev *pci) | |||
2940 | return NULL; | 2940 | return NULL; |
2941 | } | 2941 | } |
2942 | 2942 | ||
2943 | static bool __devinit check_hdmi_disabled(struct pci_dev *pci) | 2943 | static bool check_hdmi_disabled(struct pci_dev *pci) |
2944 | { | 2944 | { |
2945 | bool vga_inactive = false; | 2945 | bool vga_inactive = false; |
2946 | struct pci_dev *p = get_bound_vga(pci); | 2946 | struct pci_dev *p = get_bound_vga(pci); |
@@ -2957,7 +2957,7 @@ static bool __devinit check_hdmi_disabled(struct pci_dev *pci) | |||
2957 | /* | 2957 | /* |
2958 | * white/black-listing for position_fix | 2958 | * white/black-listing for position_fix |
2959 | */ | 2959 | */ |
2960 | static struct snd_pci_quirk position_fix_list[] __devinitdata = { | 2960 | static struct snd_pci_quirk position_fix_list[] = { |
2961 | SND_PCI_QUIRK(0x1028, 0x01cc, "Dell D820", POS_FIX_LPIB), | 2961 | SND_PCI_QUIRK(0x1028, 0x01cc, "Dell D820", POS_FIX_LPIB), |
2962 | SND_PCI_QUIRK(0x1028, 0x01de, "Dell Precision 390", POS_FIX_LPIB), | 2962 | SND_PCI_QUIRK(0x1028, 0x01de, "Dell Precision 390", POS_FIX_LPIB), |
2963 | SND_PCI_QUIRK(0x103c, 0x306d, "HP dv3", POS_FIX_LPIB), | 2963 | SND_PCI_QUIRK(0x103c, 0x306d, "HP dv3", POS_FIX_LPIB), |
@@ -2975,7 +2975,7 @@ static struct snd_pci_quirk position_fix_list[] __devinitdata = { | |||
2975 | {} | 2975 | {} |
2976 | }; | 2976 | }; |
2977 | 2977 | ||
2978 | static int __devinit check_position_fix(struct azx *chip, int fix) | 2978 | static int check_position_fix(struct azx *chip, int fix) |
2979 | { | 2979 | { |
2980 | const struct snd_pci_quirk *q; | 2980 | const struct snd_pci_quirk *q; |
2981 | 2981 | ||
@@ -3012,7 +3012,7 @@ static int __devinit check_position_fix(struct azx *chip, int fix) | |||
3012 | /* | 3012 | /* |
3013 | * black-lists for probe_mask | 3013 | * black-lists for probe_mask |
3014 | */ | 3014 | */ |
3015 | static struct snd_pci_quirk probe_mask_list[] __devinitdata = { | 3015 | static struct snd_pci_quirk probe_mask_list[] = { |
3016 | /* Thinkpad often breaks the controller communication when accessing | 3016 | /* Thinkpad often breaks the controller communication when accessing |
3017 | * to the non-working (or non-existing) modem codec slot. | 3017 | * to the non-working (or non-existing) modem codec slot. |
3018 | */ | 3018 | */ |
@@ -3033,7 +3033,7 @@ static struct snd_pci_quirk probe_mask_list[] __devinitdata = { | |||
3033 | 3033 | ||
3034 | #define AZX_FORCE_CODEC_MASK 0x100 | 3034 | #define AZX_FORCE_CODEC_MASK 0x100 |
3035 | 3035 | ||
3036 | static void __devinit check_probe_mask(struct azx *chip, int dev) | 3036 | static void check_probe_mask(struct azx *chip, int dev) |
3037 | { | 3037 | { |
3038 | const struct snd_pci_quirk *q; | 3038 | const struct snd_pci_quirk *q; |
3039 | 3039 | ||
@@ -3061,7 +3061,7 @@ static void __devinit check_probe_mask(struct azx *chip, int dev) | |||
3061 | /* | 3061 | /* |
3062 | * white/black-list for enable_msi | 3062 | * white/black-list for enable_msi |
3063 | */ | 3063 | */ |
3064 | static struct snd_pci_quirk msi_black_list[] __devinitdata = { | 3064 | static struct snd_pci_quirk msi_black_list[] = { |
3065 | SND_PCI_QUIRK(0x1043, 0x81f2, "ASUS", 0), /* Athlon64 X2 + nvidia */ | 3065 | SND_PCI_QUIRK(0x1043, 0x81f2, "ASUS", 0), /* Athlon64 X2 + nvidia */ |
3066 | SND_PCI_QUIRK(0x1043, 0x81f6, "ASUS", 0), /* nvidia */ | 3066 | SND_PCI_QUIRK(0x1043, 0x81f6, "ASUS", 0), /* nvidia */ |
3067 | SND_PCI_QUIRK(0x1043, 0x822d, "ASUS", 0), /* Athlon64 X2 + nvidia MCP55 */ | 3067 | SND_PCI_QUIRK(0x1043, 0x822d, "ASUS", 0), /* Athlon64 X2 + nvidia MCP55 */ |
@@ -3070,7 +3070,7 @@ static struct snd_pci_quirk msi_black_list[] __devinitdata = { | |||
3070 | {} | 3070 | {} |
3071 | }; | 3071 | }; |
3072 | 3072 | ||
3073 | static void __devinit check_msi(struct azx *chip) | 3073 | static void check_msi(struct azx *chip) |
3074 | { | 3074 | { |
3075 | const struct snd_pci_quirk *q; | 3075 | const struct snd_pci_quirk *q; |
3076 | 3076 | ||
@@ -3096,7 +3096,7 @@ static void __devinit check_msi(struct azx *chip) | |||
3096 | } | 3096 | } |
3097 | 3097 | ||
3098 | /* check the snoop mode availability */ | 3098 | /* check the snoop mode availability */ |
3099 | static void __devinit azx_check_snoop_available(struct azx *chip) | 3099 | static void azx_check_snoop_available(struct azx *chip) |
3100 | { | 3100 | { |
3101 | bool snoop = chip->snoop; | 3101 | bool snoop = chip->snoop; |
3102 | 3102 | ||
@@ -3128,9 +3128,9 @@ static void __devinit azx_check_snoop_available(struct azx *chip) | |||
3128 | /* | 3128 | /* |
3129 | * constructor | 3129 | * constructor |
3130 | */ | 3130 | */ |
3131 | static int __devinit azx_create(struct snd_card *card, struct pci_dev *pci, | 3131 | static int azx_create(struct snd_card *card, struct pci_dev *pci, |
3132 | int dev, unsigned int driver_caps, | 3132 | int dev, unsigned int driver_caps, |
3133 | struct azx **rchip) | 3133 | struct azx **rchip) |
3134 | { | 3134 | { |
3135 | static struct snd_device_ops ops = { | 3135 | static struct snd_device_ops ops = { |
3136 | .dev_free = azx_dev_free, | 3136 | .dev_free = azx_dev_free, |
@@ -3410,8 +3410,8 @@ static void azx_firmware_cb(const struct firmware *fw, void *context) | |||
3410 | } | 3410 | } |
3411 | #endif | 3411 | #endif |
3412 | 3412 | ||
3413 | static int __devinit azx_probe(struct pci_dev *pci, | 3413 | static int azx_probe(struct pci_dev *pci, |
3414 | const struct pci_device_id *pci_id) | 3414 | const struct pci_device_id *pci_id) |
3415 | { | 3415 | { |
3416 | static int dev; | 3416 | static int dev; |
3417 | struct snd_card *card; | 3417 | struct snd_card *card; |
@@ -3551,7 +3551,7 @@ out_free: | |||
3551 | return err; | 3551 | return err; |
3552 | } | 3552 | } |
3553 | 3553 | ||
3554 | static void __devexit azx_remove(struct pci_dev *pci) | 3554 | static void azx_remove(struct pci_dev *pci) |
3555 | { | 3555 | { |
3556 | struct snd_card *card = pci_get_drvdata(pci); | 3556 | struct snd_card *card = pci_get_drvdata(pci); |
3557 | 3557 | ||
@@ -3738,7 +3738,7 @@ static struct pci_driver azx_driver = { | |||
3738 | .name = KBUILD_MODNAME, | 3738 | .name = KBUILD_MODNAME, |
3739 | .id_table = azx_ids, | 3739 | .id_table = azx_ids, |
3740 | .probe = azx_probe, | 3740 | .probe = azx_probe, |
3741 | .remove = __devexit_p(azx_remove), | 3741 | .remove = azx_remove, |
3742 | .driver = { | 3742 | .driver = { |
3743 | .pm = AZX_PM_OPS, | 3743 | .pm = AZX_PM_OPS, |
3744 | }, | 3744 | }, |