Skip to content

Commit e74033a

Browse files
wfp5ptiwai
authored andcommitted
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>
1 parent 15afafc commit e74033a

2 files changed

Lines changed: 11 additions & 12 deletions

File tree

‎sound/sh/aica.c‎

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -540,7 +540,7 @@ static int aica_pcmvolume_put(struct snd_kcontrol *kcontrol,
540540
return 1;
541541
}
542542

543-
static struct snd_kcontrol_new snd_aica_pcmswitch_control __devinitdata = {
543+
static struct snd_kcontrol_new snd_aica_pcmswitch_control = {
544544
.iface = SNDRV_CTL_ELEM_IFACE_MIXER,
545545
.name = "PCM Playback Switch",
546546
.index = 0,
@@ -549,7 +549,7 @@ static struct snd_kcontrol_new snd_aica_pcmswitch_control __devinitdata = {
549549
.put = aica_pcmswitch_put
550550
};
551551

552-
static struct snd_kcontrol_new snd_aica_pcmvolume_control __devinitdata = {
552+
static struct snd_kcontrol_new snd_aica_pcmvolume_control = {
553553
.iface = SNDRV_CTL_ELEM_IFACE_MIXER,
554554
.name = "PCM Playback Volume",
555555
.index = 0,
@@ -574,8 +574,7 @@ static int load_aica_firmware(void)
574574
return err;
575575
}
576576

577-
static int __devinit add_aicamixer_controls(struct snd_card_aica
578-
*dreamcastcard)
577+
static int add_aicamixer_controls(struct snd_card_aica *dreamcastcard)
579578
{
580579
int err;
581580
err = snd_ctl_add
@@ -591,7 +590,7 @@ static int __devinit add_aicamixer_controls(struct snd_card_aica
591590
return 0;
592591
}
593592

594-
static int __devexit snd_aica_remove(struct platform_device *devptr)
593+
static int snd_aica_remove(struct platform_device *devptr)
595594
{
596595
struct snd_card_aica *dreamcastcard;
597596
dreamcastcard = platform_get_drvdata(devptr);
@@ -603,7 +602,7 @@ static int __devexit snd_aica_remove(struct platform_device *devptr)
603602
return 0;
604603
}
605604

606-
static int __devinit snd_aica_probe(struct platform_device *devptr)
605+
static int snd_aica_probe(struct platform_device *devptr)
607606
{
608607
int err;
609608
struct snd_card_aica *dreamcastcard;
@@ -652,7 +651,7 @@ static int __devinit snd_aica_probe(struct platform_device *devptr)
652651

653652
static struct platform_driver snd_aica_driver = {
654653
.probe = snd_aica_probe,
655-
.remove = __devexit_p(snd_aica_remove),
654+
.remove = snd_aica_remove,
656655
.driver = {
657656
.name = SND_AICA_DRIVER,
658657
.owner = THIS_MODULE,

‎sound/sh/sh_dac_audio.c‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ static struct snd_pcm_ops snd_sh_dac_pcm_ops = {
261261
.mmap = snd_pcm_lib_mmap_iomem,
262262
};
263263

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)
265265
{
266266
int err;
267267
struct snd_pcm *pcm;
@@ -346,9 +346,9 @@ static enum hrtimer_restart sh_dac_audio_timer(struct hrtimer *handle)
346346
}
347347

348348
/* create -- chip-specific constructor for the cards components */
349-
static int __devinit snd_sh_dac_create(struct snd_card *card,
350-
struct platform_device *devptr,
351-
struct snd_sh_dac **rchip)
349+
static int snd_sh_dac_create(struct snd_card *card,
350+
struct platform_device *devptr,
351+
struct snd_sh_dac **rchip)
352352
{
353353
struct snd_sh_dac *chip;
354354
int err;
@@ -392,7 +392,7 @@ static int __devinit snd_sh_dac_create(struct snd_card *card,
392392
}
393393

394394
/* 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)
396396
{
397397
struct snd_sh_dac *chip;
398398
struct snd_card *card;

0 commit comments

Comments
 (0)