aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci/ymfpci
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/ymfpci
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/ymfpci')
-rw-r--r--sound/pci/ymfpci/ymfpci.c12
-rw-r--r--sound/pci/ymfpci/ymfpci_main.c44
2 files changed, 29 insertions, 27 deletions
diff --git a/sound/pci/ymfpci/ymfpci.c b/sound/pci/ymfpci/ymfpci.c
index e01fe34db9ec..01c49655a3c1 100644
--- a/sound/pci/ymfpci/ymfpci.c
+++ b/sound/pci/ymfpci/ymfpci.c
@@ -79,8 +79,8 @@ static DEFINE_PCI_DEVICE_TABLE(snd_ymfpci_ids) = {
79MODULE_DEVICE_TABLE(pci, snd_ymfpci_ids); 79MODULE_DEVICE_TABLE(pci, snd_ymfpci_ids);
80 80
81#ifdef SUPPORT_JOYSTICK 81#ifdef SUPPORT_JOYSTICK
82static int __devinit snd_ymfpci_create_gameport(struct snd_ymfpci *chip, int dev, 82static int snd_ymfpci_create_gameport(struct snd_ymfpci *chip, int dev,
83 int legacy_ctrl, int legacy_ctrl2) 83 int legacy_ctrl, int legacy_ctrl2)
84{ 84{
85 struct gameport *gp; 85 struct gameport *gp;
86 struct resource *r = NULL; 86 struct resource *r = NULL;
@@ -167,8 +167,8 @@ static inline int snd_ymfpci_create_gameport(struct snd_ymfpci *chip, int dev, i
167void snd_ymfpci_free_gameport(struct snd_ymfpci *chip) { } 167void snd_ymfpci_free_gameport(struct snd_ymfpci *chip) { }
168#endif /* SUPPORT_JOYSTICK */ 168#endif /* SUPPORT_JOYSTICK */
169 169
170static int __devinit snd_card_ymfpci_probe(struct pci_dev *pci, 170static int snd_card_ymfpci_probe(struct pci_dev *pci,
171 const struct pci_device_id *pci_id) 171 const struct pci_device_id *pci_id)
172{ 172{
173 static int dev; 173 static int dev;
174 struct snd_card *card; 174 struct snd_card *card;
@@ -344,7 +344,7 @@ static int __devinit snd_card_ymfpci_probe(struct pci_dev *pci,
344 return 0; 344 return 0;
345} 345}
346 346
347static void __devexit snd_card_ymfpci_remove(struct pci_dev *pci) 347static void snd_card_ymfpci_remove(struct pci_dev *pci)
348{ 348{
349 snd_card_free(pci_get_drvdata(pci)); 349 snd_card_free(pci_get_drvdata(pci));
350 pci_set_drvdata(pci, NULL); 350 pci_set_drvdata(pci, NULL);
@@ -354,7 +354,7 @@ static struct pci_driver ymfpci_driver = {
354 .name = KBUILD_MODNAME, 354 .name = KBUILD_MODNAME,
355 .id_table = snd_ymfpci_ids, 355 .id_table = snd_ymfpci_ids,
356 .probe = snd_card_ymfpci_probe, 356 .probe = snd_card_ymfpci_probe,
357 .remove = __devexit_p(snd_card_ymfpci_remove), 357 .remove = snd_card_ymfpci_remove,
358#ifdef CONFIG_PM_SLEEP 358#ifdef CONFIG_PM_SLEEP
359 .driver = { 359 .driver = {
360 .pm = &snd_ymfpci_pm, 360 .pm = &snd_ymfpci_pm,
diff --git a/sound/pci/ymfpci/ymfpci_main.c b/sound/pci/ymfpci/ymfpci_main.c
index 60e8cb24bd44..22056c50fe39 100644
--- a/sound/pci/ymfpci/ymfpci_main.c
+++ b/sound/pci/ymfpci/ymfpci_main.c
@@ -597,7 +597,7 @@ static void snd_ymfpci_pcm_init_voice(struct snd_ymfpci_pcm *ypcm, unsigned int
597 } 597 }
598} 598}
599 599
600static int __devinit snd_ymfpci_ac3_init(struct snd_ymfpci *chip) 600static int snd_ymfpci_ac3_init(struct snd_ymfpci *chip)
601{ 601{
602 if (snd_dma_alloc_pages(SNDRV_DMA_TYPE_DEV, snd_dma_pci_data(chip->pci), 602 if (snd_dma_alloc_pages(SNDRV_DMA_TYPE_DEV, snd_dma_pci_data(chip->pci),
603 4096, &chip->ac3_tmp_base) < 0) 603 4096, &chip->ac3_tmp_base) < 0)
@@ -1143,7 +1143,7 @@ static struct snd_pcm_ops snd_ymfpci_capture_rec_ops = {
1143 .pointer = snd_ymfpci_capture_pointer, 1143 .pointer = snd_ymfpci_capture_pointer,
1144}; 1144};
1145 1145
1146int __devinit snd_ymfpci_pcm(struct snd_ymfpci *chip, int device, struct snd_pcm ** rpcm) 1146int snd_ymfpci_pcm(struct snd_ymfpci *chip, int device, struct snd_pcm **rpcm)
1147{ 1147{
1148 struct snd_pcm *pcm; 1148 struct snd_pcm *pcm;
1149 int err; 1149 int err;
@@ -1186,7 +1186,7 @@ static struct snd_pcm_ops snd_ymfpci_capture_ac97_ops = {
1186 .pointer = snd_ymfpci_capture_pointer, 1186 .pointer = snd_ymfpci_capture_pointer,
1187}; 1187};
1188 1188
1189int __devinit snd_ymfpci_pcm2(struct snd_ymfpci *chip, int device, struct snd_pcm ** rpcm) 1189int snd_ymfpci_pcm2(struct snd_ymfpci *chip, int device, struct snd_pcm **rpcm)
1190{ 1190{
1191 struct snd_pcm *pcm; 1191 struct snd_pcm *pcm;
1192 int err; 1192 int err;
@@ -1224,7 +1224,8 @@ static struct snd_pcm_ops snd_ymfpci_playback_spdif_ops = {
1224 .pointer = snd_ymfpci_playback_pointer, 1224 .pointer = snd_ymfpci_playback_pointer,
1225}; 1225};
1226 1226
1227int __devinit snd_ymfpci_pcm_spdif(struct snd_ymfpci *chip, int device, struct snd_pcm ** rpcm) 1227int snd_ymfpci_pcm_spdif(struct snd_ymfpci *chip, int device,
1228 struct snd_pcm **rpcm)
1228{ 1229{
1229 struct snd_pcm *pcm; 1230 struct snd_pcm *pcm;
1230 int err; 1231 int err;
@@ -1269,7 +1270,8 @@ static const struct snd_pcm_chmap_elem surround_map[] = {
1269 { } 1270 { }
1270}; 1271};
1271 1272
1272int __devinit snd_ymfpci_pcm_4ch(struct snd_ymfpci *chip, int device, struct snd_pcm ** rpcm) 1273int snd_ymfpci_pcm_4ch(struct snd_ymfpci *chip, int device,
1274 struct snd_pcm **rpcm)
1273{ 1275{
1274 struct snd_pcm *pcm; 1276 struct snd_pcm *pcm;
1275 int err; 1277 int err;
@@ -1338,7 +1340,7 @@ static int snd_ymfpci_spdif_default_put(struct snd_kcontrol *kcontrol,
1338 return change; 1340 return change;
1339} 1341}
1340 1342
1341static struct snd_kcontrol_new snd_ymfpci_spdif_default __devinitdata = 1343static struct snd_kcontrol_new snd_ymfpci_spdif_default =
1342{ 1344{
1343 .iface = SNDRV_CTL_ELEM_IFACE_PCM, 1345 .iface = SNDRV_CTL_ELEM_IFACE_PCM,
1344 .name = SNDRV_CTL_NAME_IEC958("",PLAYBACK,DEFAULT), 1346 .name = SNDRV_CTL_NAME_IEC958("",PLAYBACK,DEFAULT),
@@ -1366,7 +1368,7 @@ static int snd_ymfpci_spdif_mask_get(struct snd_kcontrol *kcontrol,
1366 return 0; 1368 return 0;
1367} 1369}
1368 1370
1369static struct snd_kcontrol_new snd_ymfpci_spdif_mask __devinitdata = 1371static struct snd_kcontrol_new snd_ymfpci_spdif_mask =
1370{ 1372{
1371 .access = SNDRV_CTL_ELEM_ACCESS_READ, 1373 .access = SNDRV_CTL_ELEM_ACCESS_READ,
1372 .iface = SNDRV_CTL_ELEM_IFACE_PCM, 1374 .iface = SNDRV_CTL_ELEM_IFACE_PCM,
@@ -1413,7 +1415,7 @@ static int snd_ymfpci_spdif_stream_put(struct snd_kcontrol *kcontrol,
1413 return change; 1415 return change;
1414} 1416}
1415 1417
1416static struct snd_kcontrol_new snd_ymfpci_spdif_stream __devinitdata = 1418static struct snd_kcontrol_new snd_ymfpci_spdif_stream =
1417{ 1419{
1418 .access = SNDRV_CTL_ELEM_ACCESS_READWRITE | SNDRV_CTL_ELEM_ACCESS_INACTIVE, 1420 .access = SNDRV_CTL_ELEM_ACCESS_READWRITE | SNDRV_CTL_ELEM_ACCESS_INACTIVE,
1419 .iface = SNDRV_CTL_ELEM_IFACE_PCM, 1421 .iface = SNDRV_CTL_ELEM_IFACE_PCM,
@@ -1461,7 +1463,7 @@ static int snd_ymfpci_drec_source_put(struct snd_kcontrol *kcontrol, struct snd_
1461 return reg != old_reg; 1463 return reg != old_reg;
1462} 1464}
1463 1465
1464static struct snd_kcontrol_new snd_ymfpci_drec_source __devinitdata = { 1466static struct snd_kcontrol_new snd_ymfpci_drec_source = {
1465 .access = SNDRV_CTL_ELEM_ACCESS_READWRITE, 1467 .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
1466 .iface = SNDRV_CTL_ELEM_IFACE_MIXER, 1468 .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
1467 .name = "Direct Recording Source", 1469 .name = "Direct Recording Source",
@@ -1631,7 +1633,7 @@ static int snd_ymfpci_put_dup4ch(struct snd_kcontrol *kcontrol, struct snd_ctl_e
1631 return change; 1633 return change;
1632} 1634}
1633 1635
1634static struct snd_kcontrol_new snd_ymfpci_dup4ch __devinitdata = { 1636static struct snd_kcontrol_new snd_ymfpci_dup4ch = {
1635 .iface = SNDRV_CTL_ELEM_IFACE_MIXER, 1637 .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
1636 .name = "4ch Duplication", 1638 .name = "4ch Duplication",
1637 .access = SNDRV_CTL_ELEM_ACCESS_READWRITE, 1639 .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
@@ -1640,7 +1642,7 @@ static struct snd_kcontrol_new snd_ymfpci_dup4ch __devinitdata = {
1640 .put = snd_ymfpci_put_dup4ch, 1642 .put = snd_ymfpci_put_dup4ch,
1641}; 1643};
1642 1644
1643static struct snd_kcontrol_new snd_ymfpci_controls[] __devinitdata = { 1645static struct snd_kcontrol_new snd_ymfpci_controls[] = {
1644{ 1646{
1645 .iface = SNDRV_CTL_ELEM_IFACE_MIXER, 1647 .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
1646 .name = "Wave Playback Volume", 1648 .name = "Wave Playback Volume",
@@ -1734,7 +1736,7 @@ static int snd_ymfpci_gpio_sw_put(struct snd_kcontrol *kcontrol, struct snd_ctl_
1734 return 0; 1736 return 0;
1735} 1737}
1736 1738
1737static struct snd_kcontrol_new snd_ymfpci_rear_shared __devinitdata = { 1739static struct snd_kcontrol_new snd_ymfpci_rear_shared = {
1738 .name = "Shared Rear/Line-In Switch", 1740 .name = "Shared Rear/Line-In Switch",
1739 .iface = SNDRV_CTL_ELEM_IFACE_MIXER, 1741 .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
1740 .info = snd_ymfpci_gpio_sw_info, 1742 .info = snd_ymfpci_gpio_sw_info,
@@ -1798,7 +1800,7 @@ static int snd_ymfpci_pcm_vol_put(struct snd_kcontrol *kcontrol,
1798 return 0; 1800 return 0;
1799} 1801}
1800 1802
1801static struct snd_kcontrol_new snd_ymfpci_pcm_volume __devinitdata = { 1803static struct snd_kcontrol_new snd_ymfpci_pcm_volume = {
1802 .iface = SNDRV_CTL_ELEM_IFACE_PCM, 1804 .iface = SNDRV_CTL_ELEM_IFACE_PCM,
1803 .name = "PCM Playback Volume", 1805 .name = "PCM Playback Volume",
1804 .access = SNDRV_CTL_ELEM_ACCESS_READWRITE | 1806 .access = SNDRV_CTL_ELEM_ACCESS_READWRITE |
@@ -1825,7 +1827,7 @@ static void snd_ymfpci_mixer_free_ac97(struct snd_ac97 *ac97)
1825 chip->ac97 = NULL; 1827 chip->ac97 = NULL;
1826} 1828}
1827 1829
1828int __devinit snd_ymfpci_mixer(struct snd_ymfpci *chip, int rear_switch) 1830int snd_ymfpci_mixer(struct snd_ymfpci *chip, int rear_switch)
1829{ 1831{
1830 struct snd_ac97_template ac97; 1832 struct snd_ac97_template ac97;
1831 struct snd_kcontrol *kctl; 1833 struct snd_kcontrol *kctl;
@@ -1969,7 +1971,7 @@ static struct snd_timer_hardware snd_ymfpci_timer_hw = {
1969 .precise_resolution = snd_ymfpci_timer_precise_resolution, 1971 .precise_resolution = snd_ymfpci_timer_precise_resolution,
1970}; 1972};
1971 1973
1972int __devinit snd_ymfpci_timer(struct snd_ymfpci *chip, int device) 1974int snd_ymfpci_timer(struct snd_ymfpci *chip, int device)
1973{ 1975{
1974 struct snd_timer *timer = NULL; 1976 struct snd_timer *timer = NULL;
1975 struct snd_timer_id tid; 1977 struct snd_timer_id tid;
@@ -2005,7 +2007,7 @@ static void snd_ymfpci_proc_read(struct snd_info_entry *entry,
2005 snd_iprintf(buffer, "%04x: %04x\n", i, snd_ymfpci_readl(chip, i)); 2007 snd_iprintf(buffer, "%04x: %04x\n", i, snd_ymfpci_readl(chip, i));
2006} 2008}
2007 2009
2008static int __devinit snd_ymfpci_proc_init(struct snd_card *card, struct snd_ymfpci *chip) 2010static int snd_ymfpci_proc_init(struct snd_card *card, struct snd_ymfpci *chip)
2009{ 2011{
2010 struct snd_info_entry *entry; 2012 struct snd_info_entry *entry;
2011 2013
@@ -2127,7 +2129,7 @@ static void snd_ymfpci_download_image(struct snd_ymfpci *chip)
2127 snd_ymfpci_enable_dsp(chip); 2129 snd_ymfpci_enable_dsp(chip);
2128} 2130}
2129 2131
2130static int __devinit snd_ymfpci_memalloc(struct snd_ymfpci *chip) 2132static int snd_ymfpci_memalloc(struct snd_ymfpci *chip)
2131{ 2133{
2132 long size, playback_ctrl_size; 2134 long size, playback_ctrl_size;
2133 int voice, bank, reg; 2135 int voice, bank, reg;
@@ -2393,10 +2395,10 @@ static int snd_ymfpci_resume(struct device *dev)
2393SIMPLE_DEV_PM_OPS(snd_ymfpci_pm, snd_ymfpci_suspend, snd_ymfpci_resume); 2395SIMPLE_DEV_PM_OPS(snd_ymfpci_pm, snd_ymfpci_suspend, snd_ymfpci_resume);
2394#endif /* CONFIG_PM_SLEEP */ 2396#endif /* CONFIG_PM_SLEEP */
2395 2397
2396int __devinit snd_ymfpci_create(struct snd_card *card, 2398int snd_ymfpci_create(struct snd_card *card,
2397 struct pci_dev * pci, 2399 struct pci_dev *pci,
2398 unsigned short old_legacy_ctrl, 2400 unsigned short old_legacy_ctrl,
2399 struct snd_ymfpci ** rchip) 2401 struct snd_ymfpci **rchip)
2400{ 2402{
2401 struct snd_ymfpci *chip; 2403 struct snd_ymfpci *chip;
2402 int err; 2404 int err;