diff options
author | Bill Pemberton <wfp5p@virginia.edu> | 2012-12-06 12:35:24 -0500 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2012-12-07 01:33:47 -0500 |
commit | e74033a858bf36d5763eafea600e07fc917e3592 (patch) | |
tree | 7b60370121e60fce07b1c3dba26561ed95abd0ec /sound/sh | |
parent | 15afafc2565bc785eb7a440b8b4a53f77910cf04 (diff) |
ALSA: sh: 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/sh')
-rw-r--r-- | sound/sh/aica.c | 13 | ||||
-rw-r--r-- | sound/sh/sh_dac_audio.c | 10 |
2 files changed, 11 insertions, 12 deletions
diff --git a/sound/sh/aica.c b/sound/sh/aica.c index d48b523207eb..e59a73a9bc42 100644 --- a/sound/sh/aica.c +++ b/sound/sh/aica.c | |||
@@ -540,7 +540,7 @@ static int aica_pcmvolume_put(struct snd_kcontrol *kcontrol, | |||
540 | return 1; | 540 | return 1; |
541 | } | 541 | } |
542 | 542 | ||
543 | static struct snd_kcontrol_new snd_aica_pcmswitch_control __devinitdata = { | 543 | static struct snd_kcontrol_new snd_aica_pcmswitch_control = { |
544 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, | 544 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, |
545 | .name = "PCM Playback Switch", | 545 | .name = "PCM Playback Switch", |
546 | .index = 0, | 546 | .index = 0, |
@@ -549,7 +549,7 @@ static struct snd_kcontrol_new snd_aica_pcmswitch_control __devinitdata = { | |||
549 | .put = aica_pcmswitch_put | 549 | .put = aica_pcmswitch_put |
550 | }; | 550 | }; |
551 | 551 | ||
552 | static struct snd_kcontrol_new snd_aica_pcmvolume_control __devinitdata = { | 552 | static struct snd_kcontrol_new snd_aica_pcmvolume_control = { |
553 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, | 553 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, |
554 | .name = "PCM Playback Volume", | 554 | .name = "PCM Playback Volume", |
555 | .index = 0, | 555 | .index = 0, |
@@ -574,8 +574,7 @@ static int load_aica_firmware(void) | |||
574 | return err; | 574 | return err; |
575 | } | 575 | } |
576 | 576 | ||
577 | static int __devinit add_aicamixer_controls(struct snd_card_aica | 577 | static int add_aicamixer_controls(struct snd_card_aica *dreamcastcard) |
578 | *dreamcastcard) | ||
579 | { | 578 | { |
580 | int err; | 579 | int err; |
581 | err = snd_ctl_add | 580 | err = snd_ctl_add |
@@ -591,7 +590,7 @@ static int __devinit add_aicamixer_controls(struct snd_card_aica | |||
591 | return 0; | 590 | return 0; |
592 | } | 591 | } |
593 | 592 | ||
594 | static int __devexit snd_aica_remove(struct platform_device *devptr) | 593 | static int snd_aica_remove(struct platform_device *devptr) |
595 | { | 594 | { |
596 | struct snd_card_aica *dreamcastcard; | 595 | struct snd_card_aica *dreamcastcard; |
597 | dreamcastcard = platform_get_drvdata(devptr); | 596 | dreamcastcard = platform_get_drvdata(devptr); |
@@ -603,7 +602,7 @@ static int __devexit snd_aica_remove(struct platform_device *devptr) | |||
603 | return 0; | 602 | return 0; |
604 | } | 603 | } |
605 | 604 | ||
606 | static int __devinit snd_aica_probe(struct platform_device *devptr) | 605 | static int snd_aica_probe(struct platform_device *devptr) |
607 | { | 606 | { |
608 | int err; | 607 | int err; |
609 | struct snd_card_aica *dreamcastcard; | 608 | struct snd_card_aica *dreamcastcard; |
@@ -652,7 +651,7 @@ static int __devinit snd_aica_probe(struct platform_device *devptr) | |||
652 | 651 | ||
653 | static struct platform_driver snd_aica_driver = { | 652 | static struct platform_driver snd_aica_driver = { |
654 | .probe = snd_aica_probe, | 653 | .probe = snd_aica_probe, |
655 | .remove = __devexit_p(snd_aica_remove), | 654 | .remove = snd_aica_remove, |
656 | .driver = { | 655 | .driver = { |
657 | .name = SND_AICA_DRIVER, | 656 | .name = SND_AICA_DRIVER, |
658 | .owner = THIS_MODULE, | 657 | .owner = THIS_MODULE, |
diff --git a/sound/sh/sh_dac_audio.c b/sound/sh/sh_dac_audio.c index 0a3394751ed2..e68c4fc91a03 100644 --- a/sound/sh/sh_dac_audio.c +++ b/sound/sh/sh_dac_audio.c | |||
@@ -261,7 +261,7 @@ static struct snd_pcm_ops snd_sh_dac_pcm_ops = { | |||
261 | .mmap = snd_pcm_lib_mmap_iomem, | 261 | .mmap = snd_pcm_lib_mmap_iomem, |
262 | }; | 262 | }; |
263 | 263 | ||
264 | static int __devinit snd_sh_dac_pcm(struct snd_sh_dac *chip, int device) | 264 | static int snd_sh_dac_pcm(struct snd_sh_dac *chip, int device) |
265 | { | 265 | { |
266 | int err; | 266 | int err; |
267 | struct snd_pcm *pcm; | 267 | struct snd_pcm *pcm; |
@@ -346,9 +346,9 @@ static enum hrtimer_restart sh_dac_audio_timer(struct hrtimer *handle) | |||
346 | } | 346 | } |
347 | 347 | ||
348 | /* create -- chip-specific constructor for the cards components */ | 348 | /* create -- chip-specific constructor for the cards components */ |
349 | static int __devinit snd_sh_dac_create(struct snd_card *card, | 349 | static int snd_sh_dac_create(struct snd_card *card, |
350 | struct platform_device *devptr, | 350 | struct platform_device *devptr, |
351 | struct snd_sh_dac **rchip) | 351 | struct snd_sh_dac **rchip) |
352 | { | 352 | { |
353 | struct snd_sh_dac *chip; | 353 | struct snd_sh_dac *chip; |
354 | int err; | 354 | int err; |
@@ -392,7 +392,7 @@ static int __devinit snd_sh_dac_create(struct snd_card *card, | |||
392 | } | 392 | } |
393 | 393 | ||
394 | /* driver .probe -- constructor */ | 394 | /* driver .probe -- constructor */ |
395 | static int __devinit snd_sh_dac_probe(struct platform_device *devptr) | 395 | static int snd_sh_dac_probe(struct platform_device *devptr) |
396 | { | 396 | { |
397 | struct snd_sh_dac *chip; | 397 | struct snd_sh_dac *chip; |
398 | struct snd_card *card; | 398 | struct snd_card *card; |