diff options
author | Bill Pemberton <wfp5p@virginia.edu> | 2012-12-06 12:35:21 -0500 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2012-12-07 01:32:17 -0500 |
commit | 1bff292e9abec7477d43abb2b93c7fd26c44859b (patch) | |
tree | 6c9a58a0f5aacf99a3ee4a964b1fefd4470b0893 /sound/isa/gus/gusextreme.c | |
parent | f120a6fb486c2500c9ae11fd2da11fbde29bc186 (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/gus/gusextreme.c')
-rw-r--r-- | sound/isa/gus/gusextreme.c | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/sound/isa/gus/gusextreme.c b/sound/isa/gus/gusextreme.c index bc10cc26e5f9..0b9c2426b49f 100644 --- a/sound/isa/gus/gusextreme.c +++ b/sound/isa/gus/gusextreme.c | |||
@@ -89,13 +89,14 @@ MODULE_PARM_DESC(channels, "GF1 channels for " CRD_NAME " driver."); | |||
89 | module_param_array(pcm_channels, int, NULL, 0444); | 89 | module_param_array(pcm_channels, int, NULL, 0444); |
90 | MODULE_PARM_DESC(pcm_channels, "Reserved PCM channels for " CRD_NAME " driver."); | 90 | MODULE_PARM_DESC(pcm_channels, "Reserved PCM channels for " CRD_NAME " driver."); |
91 | 91 | ||
92 | static int __devinit snd_gusextreme_match(struct device *dev, unsigned int n) | 92 | static int snd_gusextreme_match(struct device *dev, unsigned int n) |
93 | { | 93 | { |
94 | return enable[n]; | 94 | return enable[n]; |
95 | } | 95 | } |
96 | 96 | ||
97 | static int __devinit snd_gusextreme_es1688_create(struct snd_card *card, | 97 | static int snd_gusextreme_es1688_create(struct snd_card *card, |
98 | struct snd_es1688 *chip, struct device *dev, unsigned int n) | 98 | struct snd_es1688 *chip, |
99 | struct device *dev, unsigned int n) | ||
99 | { | 100 | { |
100 | static long possible_ports[] = {0x220, 0x240, 0x260}; | 101 | static long possible_ports[] = {0x220, 0x240, 0x260}; |
101 | static int possible_irqs[] = {5, 9, 10, 7, -1}; | 102 | static int possible_irqs[] = {5, 9, 10, 7, -1}; |
@@ -132,8 +133,9 @@ static int __devinit snd_gusextreme_es1688_create(struct snd_card *card, | |||
132 | return error; | 133 | return error; |
133 | } | 134 | } |
134 | 135 | ||
135 | static int __devinit snd_gusextreme_gus_card_create(struct snd_card *card, | 136 | static int snd_gusextreme_gus_card_create(struct snd_card *card, |
136 | struct device *dev, unsigned int n, struct snd_gus_card **rgus) | 137 | struct device *dev, unsigned int n, |
138 | struct snd_gus_card **rgus) | ||
137 | { | 139 | { |
138 | static int possible_irqs[] = {11, 12, 15, 9, 5, 7, 3, -1}; | 140 | static int possible_irqs[] = {11, 12, 15, 9, 5, 7, 3, -1}; |
139 | static int possible_dmas[] = {5, 6, 7, 3, 1, -1}; | 141 | static int possible_dmas[] = {5, 6, 7, 3, 1, -1}; |
@@ -156,8 +158,8 @@ static int __devinit snd_gusextreme_gus_card_create(struct snd_card *card, | |||
156 | 0, channels[n], pcm_channels[n], 0, rgus); | 158 | 0, channels[n], pcm_channels[n], 0, rgus); |
157 | } | 159 | } |
158 | 160 | ||
159 | static int __devinit snd_gusextreme_detect(struct snd_gus_card *gus, | 161 | static int snd_gusextreme_detect(struct snd_gus_card *gus, |
160 | struct snd_es1688 *es1688) | 162 | struct snd_es1688 *es1688) |
161 | { | 163 | { |
162 | unsigned long flags; | 164 | unsigned long flags; |
163 | unsigned char d; | 165 | unsigned char d; |
@@ -206,7 +208,7 @@ static int __devinit snd_gusextreme_detect(struct snd_gus_card *gus, | |||
206 | return 0; | 208 | return 0; |
207 | } | 209 | } |
208 | 210 | ||
209 | static int __devinit snd_gusextreme_mixer(struct snd_card *card) | 211 | static int snd_gusextreme_mixer(struct snd_card *card) |
210 | { | 212 | { |
211 | struct snd_ctl_elem_id id1, id2; | 213 | struct snd_ctl_elem_id id1, id2; |
212 | int error; | 214 | int error; |
@@ -232,7 +234,7 @@ static int __devinit snd_gusextreme_mixer(struct snd_card *card) | |||
232 | return 0; | 234 | return 0; |
233 | } | 235 | } |
234 | 236 | ||
235 | static int __devinit snd_gusextreme_probe(struct device *dev, unsigned int n) | 237 | static int snd_gusextreme_probe(struct device *dev, unsigned int n) |
236 | { | 238 | { |
237 | struct snd_card *card; | 239 | struct snd_card *card; |
238 | struct snd_gus_card *gus; | 240 | struct snd_gus_card *gus; |
@@ -339,7 +341,7 @@ out: snd_card_free(card); | |||
339 | return error; | 341 | return error; |
340 | } | 342 | } |
341 | 343 | ||
342 | static int __devexit snd_gusextreme_remove(struct device *dev, unsigned int n) | 344 | static int snd_gusextreme_remove(struct device *dev, unsigned int n) |
343 | { | 345 | { |
344 | snd_card_free(dev_get_drvdata(dev)); | 346 | snd_card_free(dev_get_drvdata(dev)); |
345 | dev_set_drvdata(dev, NULL); | 347 | dev_set_drvdata(dev, NULL); |
@@ -349,7 +351,7 @@ static int __devexit snd_gusextreme_remove(struct device *dev, unsigned int n) | |||
349 | static struct isa_driver snd_gusextreme_driver = { | 351 | static struct isa_driver snd_gusextreme_driver = { |
350 | .match = snd_gusextreme_match, | 352 | .match = snd_gusextreme_match, |
351 | .probe = snd_gusextreme_probe, | 353 | .probe = snd_gusextreme_probe, |
352 | .remove = __devexit_p(snd_gusextreme_remove), | 354 | .remove = snd_gusextreme_remove, |
353 | #if 0 /* FIXME */ | 355 | #if 0 /* FIXME */ |
354 | .suspend = snd_gusextreme_suspend, | 356 | .suspend = snd_gusextreme_suspend, |
355 | .resume = snd_gusextreme_resume, | 357 | .resume = snd_gusextreme_resume, |