diff options
author | Bill Pemberton <wfp5p@virginia.edu> | 2012-12-06 12:35:10 -0500 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2012-12-07 01:20:55 -0500 |
commit | e23e7a1436207217000c2854214bc908936af3cb (patch) | |
tree | aebb83a4e59dde76a79ac60b51b67849c75c545b /sound/pci/sonicvibes.c | |
parent | 445a51b353c35fe54840c10352ef51152fbb94df (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/sonicvibes.c')
-rw-r--r-- | sound/pci/sonicvibes.c | 37 |
1 files changed, 19 insertions, 18 deletions
diff --git a/sound/pci/sonicvibes.c b/sound/pci/sonicvibes.c index baa9946bedf0..a2e7686e7ae3 100644 --- a/sound/pci/sonicvibes.c +++ b/sound/pci/sonicvibes.c | |||
@@ -877,7 +877,8 @@ static struct snd_pcm_ops snd_sonicvibes_capture_ops = { | |||
877 | .pointer = snd_sonicvibes_capture_pointer, | 877 | .pointer = snd_sonicvibes_capture_pointer, |
878 | }; | 878 | }; |
879 | 879 | ||
880 | static int __devinit snd_sonicvibes_pcm(struct sonicvibes * sonic, int device, struct snd_pcm ** rpcm) | 880 | static int snd_sonicvibes_pcm(struct sonicvibes *sonic, int device, |
881 | struct snd_pcm **rpcm) | ||
881 | { | 882 | { |
882 | struct snd_pcm *pcm; | 883 | struct snd_pcm *pcm; |
883 | int err; | 884 | int err; |
@@ -1087,7 +1088,7 @@ static int snd_sonicvibes_put_double(struct snd_kcontrol *kcontrol, struct snd_c | |||
1087 | return change; | 1088 | return change; |
1088 | } | 1089 | } |
1089 | 1090 | ||
1090 | static struct snd_kcontrol_new snd_sonicvibes_controls[] __devinitdata = { | 1091 | static struct snd_kcontrol_new snd_sonicvibes_controls[] = { |
1091 | SONICVIBES_DOUBLE("Capture Volume", 0, SV_IREG_LEFT_ADC, SV_IREG_RIGHT_ADC, 0, 0, 15, 0), | 1092 | SONICVIBES_DOUBLE("Capture Volume", 0, SV_IREG_LEFT_ADC, SV_IREG_RIGHT_ADC, 0, 0, 15, 0), |
1092 | SONICVIBES_DOUBLE("Aux Playback Switch", 0, SV_IREG_LEFT_AUX1, SV_IREG_RIGHT_AUX1, 7, 7, 1, 1), | 1093 | SONICVIBES_DOUBLE("Aux Playback Switch", 0, SV_IREG_LEFT_AUX1, SV_IREG_RIGHT_AUX1, 7, 7, 1, 1), |
1093 | SONICVIBES_DOUBLE("Aux Playback Volume", 0, SV_IREG_LEFT_AUX1, SV_IREG_RIGHT_AUX1, 0, 0, 31, 1), | 1094 | SONICVIBES_DOUBLE("Aux Playback Volume", 0, SV_IREG_LEFT_AUX1, SV_IREG_RIGHT_AUX1, 0, 0, 31, 1), |
@@ -1118,7 +1119,7 @@ static void snd_sonicvibes_master_free(struct snd_kcontrol *kcontrol) | |||
1118 | sonic->master_volume = NULL; | 1119 | sonic->master_volume = NULL; |
1119 | } | 1120 | } |
1120 | 1121 | ||
1121 | static int __devinit snd_sonicvibes_mixer(struct sonicvibes * sonic) | 1122 | static int snd_sonicvibes_mixer(struct sonicvibes *sonic) |
1122 | { | 1123 | { |
1123 | struct snd_card *card; | 1124 | struct snd_card *card; |
1124 | struct snd_kcontrol *kctl; | 1125 | struct snd_kcontrol *kctl; |
@@ -1175,7 +1176,7 @@ static void snd_sonicvibes_proc_read(struct snd_info_entry *entry, | |||
1175 | snd_iprintf(buffer, "MIDI to ext. Tx : %s\n", tmp & 0x04 ? "on" : "off"); | 1176 | snd_iprintf(buffer, "MIDI to ext. Tx : %s\n", tmp & 0x04 ? "on" : "off"); |
1176 | } | 1177 | } |
1177 | 1178 | ||
1178 | static void __devinit snd_sonicvibes_proc_init(struct sonicvibes * sonic) | 1179 | static void snd_sonicvibes_proc_init(struct sonicvibes *sonic) |
1179 | { | 1180 | { |
1180 | struct snd_info_entry *entry; | 1181 | struct snd_info_entry *entry; |
1181 | 1182 | ||
@@ -1188,10 +1189,10 @@ static void __devinit snd_sonicvibes_proc_init(struct sonicvibes * sonic) | |||
1188 | */ | 1189 | */ |
1189 | 1190 | ||
1190 | #ifdef SUPPORT_JOYSTICK | 1191 | #ifdef SUPPORT_JOYSTICK |
1191 | static struct snd_kcontrol_new snd_sonicvibes_game_control __devinitdata = | 1192 | static struct snd_kcontrol_new snd_sonicvibes_game_control = |
1192 | SONICVIBES_SINGLE("Joystick Speed", 0, SV_IREG_GAME_PORT, 1, 15, 0); | 1193 | SONICVIBES_SINGLE("Joystick Speed", 0, SV_IREG_GAME_PORT, 1, 15, 0); |
1193 | 1194 | ||
1194 | static int __devinit snd_sonicvibes_create_gameport(struct sonicvibes *sonic) | 1195 | static int snd_sonicvibes_create_gameport(struct sonicvibes *sonic) |
1195 | { | 1196 | { |
1196 | struct gameport *gp; | 1197 | struct gameport *gp; |
1197 | 1198 | ||
@@ -1246,11 +1247,11 @@ static int snd_sonicvibes_dev_free(struct snd_device *device) | |||
1246 | return snd_sonicvibes_free(sonic); | 1247 | return snd_sonicvibes_free(sonic); |
1247 | } | 1248 | } |
1248 | 1249 | ||
1249 | static int __devinit snd_sonicvibes_create(struct snd_card *card, | 1250 | static int snd_sonicvibes_create(struct snd_card *card, |
1250 | struct pci_dev *pci, | 1251 | struct pci_dev *pci, |
1251 | int reverb, | 1252 | int reverb, |
1252 | int mge, | 1253 | int mge, |
1253 | struct sonicvibes ** rsonic) | 1254 | struct sonicvibes **rsonic) |
1254 | { | 1255 | { |
1255 | struct sonicvibes *sonic; | 1256 | struct sonicvibes *sonic; |
1256 | unsigned int dmaa, dmac; | 1257 | unsigned int dmaa, dmac; |
@@ -1401,7 +1402,7 @@ static int __devinit snd_sonicvibes_create(struct snd_card *card, | |||
1401 | * MIDI section | 1402 | * MIDI section |
1402 | */ | 1403 | */ |
1403 | 1404 | ||
1404 | static struct snd_kcontrol_new snd_sonicvibes_midi_controls[] __devinitdata = { | 1405 | static struct snd_kcontrol_new snd_sonicvibes_midi_controls[] = { |
1405 | SONICVIBES_SINGLE("SonicVibes Wave Source RAM", 0, SV_IREG_WAVE_SOURCE, 0, 1, 0), | 1406 | SONICVIBES_SINGLE("SonicVibes Wave Source RAM", 0, SV_IREG_WAVE_SOURCE, 0, 1, 0), |
1406 | SONICVIBES_SINGLE("SonicVibes Wave Source RAM+ROM", 0, SV_IREG_WAVE_SOURCE, 1, 1, 0), | 1407 | SONICVIBES_SINGLE("SonicVibes Wave Source RAM+ROM", 0, SV_IREG_WAVE_SOURCE, 1, 1, 0), |
1407 | SONICVIBES_SINGLE("SonicVibes Onboard Synth", 0, SV_IREG_MPU401, 0, 1, 0), | 1408 | SONICVIBES_SINGLE("SonicVibes Onboard Synth", 0, SV_IREG_MPU401, 0, 1, 0), |
@@ -1422,8 +1423,8 @@ static void snd_sonicvibes_midi_input_close(struct snd_mpu401 * mpu) | |||
1422 | outb(sonic->irqmask |= SV_MIDI_MASK, SV_REG(sonic, IRQMASK)); | 1423 | outb(sonic->irqmask |= SV_MIDI_MASK, SV_REG(sonic, IRQMASK)); |
1423 | } | 1424 | } |
1424 | 1425 | ||
1425 | static int __devinit snd_sonicvibes_midi(struct sonicvibes * sonic, | 1426 | static int snd_sonicvibes_midi(struct sonicvibes *sonic, |
1426 | struct snd_rawmidi *rmidi) | 1427 | struct snd_rawmidi *rmidi) |
1427 | { | 1428 | { |
1428 | struct snd_mpu401 * mpu = rmidi->private_data; | 1429 | struct snd_mpu401 * mpu = rmidi->private_data; |
1429 | struct snd_card *card = sonic->card; | 1430 | struct snd_card *card = sonic->card; |
@@ -1441,8 +1442,8 @@ static int __devinit snd_sonicvibes_midi(struct sonicvibes * sonic, | |||
1441 | return 0; | 1442 | return 0; |
1442 | } | 1443 | } |
1443 | 1444 | ||
1444 | static int __devinit snd_sonic_probe(struct pci_dev *pci, | 1445 | static int snd_sonic_probe(struct pci_dev *pci, |
1445 | const struct pci_device_id *pci_id) | 1446 | const struct pci_device_id *pci_id) |
1446 | { | 1447 | { |
1447 | static int dev; | 1448 | static int dev; |
1448 | struct snd_card *card; | 1449 | struct snd_card *card; |
@@ -1524,7 +1525,7 @@ static int __devinit snd_sonic_probe(struct pci_dev *pci, | |||
1524 | return 0; | 1525 | return 0; |
1525 | } | 1526 | } |
1526 | 1527 | ||
1527 | static void __devexit snd_sonic_remove(struct pci_dev *pci) | 1528 | static void snd_sonic_remove(struct pci_dev *pci) |
1528 | { | 1529 | { |
1529 | snd_card_free(pci_get_drvdata(pci)); | 1530 | snd_card_free(pci_get_drvdata(pci)); |
1530 | pci_set_drvdata(pci, NULL); | 1531 | pci_set_drvdata(pci, NULL); |
@@ -1534,7 +1535,7 @@ static struct pci_driver sonicvibes_driver = { | |||
1534 | .name = KBUILD_MODNAME, | 1535 | .name = KBUILD_MODNAME, |
1535 | .id_table = snd_sonic_ids, | 1536 | .id_table = snd_sonic_ids, |
1536 | .probe = snd_sonic_probe, | 1537 | .probe = snd_sonic_probe, |
1537 | .remove = __devexit_p(snd_sonic_remove), | 1538 | .remove = snd_sonic_remove, |
1538 | }; | 1539 | }; |
1539 | 1540 | ||
1540 | module_pci_driver(sonicvibes_driver); | 1541 | module_pci_driver(sonicvibes_driver); |