Skip to content

Commit 32e02a7

Browse files
wfp5ptiwai
authored andcommitted
ALSA: sparc: 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 e74033a commit 32e02a7

3 files changed

Lines changed: 41 additions & 41 deletions

File tree

‎sound/sparc/amd7930.c‎

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -755,7 +755,7 @@ static struct snd_pcm_ops snd_amd7930_capture_ops = {
755755
.pointer = snd_amd7930_capture_pointer,
756756
};
757757

758-
static int __devinit snd_amd7930_pcm(struct snd_amd7930 *amd)
758+
static int snd_amd7930_pcm(struct snd_amd7930 *amd)
759759
{
760760
struct snd_pcm *pcm;
761761
int err;
@@ -854,7 +854,7 @@ static int snd_amd7930_put_volume(struct snd_kcontrol *kctl, struct snd_ctl_elem
854854
return change;
855855
}
856856

857-
static struct snd_kcontrol_new amd7930_controls[] __devinitdata = {
857+
static struct snd_kcontrol_new amd7930_controls[] = {
858858
{
859859
.iface = SNDRV_CTL_ELEM_IFACE_MIXER,
860860
.name = "Monitor Volume",
@@ -884,7 +884,7 @@ static struct snd_kcontrol_new amd7930_controls[] __devinitdata = {
884884
},
885885
};
886886

887-
static int __devinit snd_amd7930_mixer(struct snd_amd7930 *amd)
887+
static int snd_amd7930_mixer(struct snd_amd7930 *amd)
888888
{
889889
struct snd_card *card;
890890
int idx, err;
@@ -933,10 +933,10 @@ static struct snd_device_ops snd_amd7930_dev_ops = {
933933
.dev_free = snd_amd7930_dev_free,
934934
};
935935

936-
static int __devinit snd_amd7930_create(struct snd_card *card,
937-
struct platform_device *op,
938-
int irq, int dev,
939-
struct snd_amd7930 **ramd)
936+
static int snd_amd7930_create(struct snd_card *card,
937+
struct platform_device *op,
938+
int irq, int dev,
939+
struct snd_amd7930 **ramd)
940940
{
941941
struct snd_amd7930 *amd;
942942
unsigned long flags;
@@ -1002,7 +1002,7 @@ static int __devinit snd_amd7930_create(struct snd_card *card,
10021002
return 0;
10031003
}
10041004

1005-
static int __devinit amd7930_sbus_probe(struct platform_device *op)
1005+
static int amd7930_sbus_probe(struct platform_device *op)
10061006
{
10071007
struct resource *rp = &op->resource[0];
10081008
static int dev_num;

‎sound/sparc/cs4231.c‎

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -702,7 +702,7 @@ static int snd_cs4231_timer_stop(struct snd_timer *timer)
702702
return 0;
703703
}
704704

705-
static void __devinit snd_cs4231_init(struct snd_cs4231 *chip)
705+
static void snd_cs4231_init(struct snd_cs4231 *chip)
706706
{
707707
unsigned long flags;
708708

@@ -1019,7 +1019,7 @@ static snd_pcm_uframes_t snd_cs4231_capture_pointer(
10191019
return bytes_to_frames(substream->runtime, ptr);
10201020
}
10211021

1022-
static int __devinit snd_cs4231_probe(struct snd_cs4231 *chip)
1022+
static int snd_cs4231_probe(struct snd_cs4231 *chip)
10231023
{
10241024
unsigned long flags;
10251025
int i;
@@ -1218,7 +1218,7 @@ static struct snd_pcm_ops snd_cs4231_capture_ops = {
12181218
.pointer = snd_cs4231_capture_pointer,
12191219
};
12201220

1221-
static int __devinit snd_cs4231_pcm(struct snd_card *card)
1221+
static int snd_cs4231_pcm(struct snd_card *card)
12221222
{
12231223
struct snd_cs4231 *chip = card->private_data;
12241224
struct snd_pcm *pcm;
@@ -1247,7 +1247,7 @@ static int __devinit snd_cs4231_pcm(struct snd_card *card)
12471247
return 0;
12481248
}
12491249

1250-
static int __devinit snd_cs4231_timer(struct snd_card *card)
1250+
static int snd_cs4231_timer(struct snd_card *card)
12511251
{
12521252
struct snd_cs4231 *chip = card->private_data;
12531253
struct snd_timer *timer;
@@ -1498,7 +1498,7 @@ static int snd_cs4231_put_double(struct snd_kcontrol *kcontrol,
14981498
.private_value = (left_reg) | ((right_reg) << 8) | ((shift_left) << 16) | \
14991499
((shift_right) << 19) | ((mask) << 24) | ((invert) << 22) }
15001500

1501-
static struct snd_kcontrol_new snd_cs4231_controls[] __devinitdata = {
1501+
static struct snd_kcontrol_new snd_cs4231_controls[] = {
15021502
CS4231_DOUBLE("PCM Playback Switch", 0, CS4231_LEFT_OUTPUT,
15031503
CS4231_RIGHT_OUTPUT, 7, 7, 1, 1),
15041504
CS4231_DOUBLE("PCM Playback Volume", 0, CS4231_LEFT_OUTPUT,
@@ -1537,7 +1537,7 @@ CS4231_SINGLE("Line Out Switch", 0, CS4231_PIN_CTRL, 6, 1, 1),
15371537
CS4231_SINGLE("Headphone Out Switch", 0, CS4231_PIN_CTRL, 7, 1, 1)
15381538
};
15391539

1540-
static int __devinit snd_cs4231_mixer(struct snd_card *card)
1540+
static int snd_cs4231_mixer(struct snd_card *card)
15411541
{
15421542
struct snd_cs4231 *chip = card->private_data;
15431543
int err, idx;
@@ -1558,7 +1558,7 @@ static int __devinit snd_cs4231_mixer(struct snd_card *card)
15581558

15591559
static int dev;
15601560

1561-
static int __devinit cs4231_attach_begin(struct snd_card **rcard)
1561+
static int cs4231_attach_begin(struct snd_card **rcard)
15621562
{
15631563
struct snd_card *card;
15641564
struct snd_cs4231 *chip;
@@ -1589,7 +1589,7 @@ static int __devinit cs4231_attach_begin(struct snd_card **rcard)
15891589
return 0;
15901590
}
15911591

1592-
static int __devinit cs4231_attach_finish(struct snd_card *card)
1592+
static int cs4231_attach_finish(struct snd_card *card)
15931593
{
15941594
struct snd_cs4231 *chip = card->private_data;
15951595
int err;
@@ -1793,9 +1793,9 @@ static struct snd_device_ops snd_cs4231_sbus_dev_ops = {
17931793
.dev_free = snd_cs4231_sbus_dev_free,
17941794
};
17951795

1796-
static int __devinit snd_cs4231_sbus_create(struct snd_card *card,
1797-
struct platform_device *op,
1798-
int dev)
1796+
static int snd_cs4231_sbus_create(struct snd_card *card,
1797+
struct platform_device *op,
1798+
int dev)
17991799
{
18001800
struct snd_cs4231 *chip = card->private_data;
18011801
int err;
@@ -1856,7 +1856,7 @@ static int __devinit snd_cs4231_sbus_create(struct snd_card *card,
18561856
return 0;
18571857
}
18581858

1859-
static int __devinit cs4231_sbus_probe(struct platform_device *op)
1859+
static int cs4231_sbus_probe(struct platform_device *op)
18601860
{
18611861
struct resource *rp = &op->resource[0];
18621862
struct snd_card *card;
@@ -1959,9 +1959,9 @@ static struct snd_device_ops snd_cs4231_ebus_dev_ops = {
19591959
.dev_free = snd_cs4231_ebus_dev_free,
19601960
};
19611961

1962-
static int __devinit snd_cs4231_ebus_create(struct snd_card *card,
1963-
struct platform_device *op,
1964-
int dev)
1962+
static int snd_cs4231_ebus_create(struct snd_card *card,
1963+
struct platform_device *op,
1964+
int dev)
19651965
{
19661966
struct snd_cs4231 *chip = card->private_data;
19671967
int err;
@@ -2048,7 +2048,7 @@ static int __devinit snd_cs4231_ebus_create(struct snd_card *card,
20482048
return 0;
20492049
}
20502050

2051-
static int __devinit cs4231_ebus_probe(struct platform_device *op)
2051+
static int cs4231_ebus_probe(struct platform_device *op)
20522052
{
20532053
struct snd_card *card;
20542054
int err;
@@ -2072,7 +2072,7 @@ static int __devinit cs4231_ebus_probe(struct platform_device *op)
20722072
}
20732073
#endif
20742074

2075-
static int __devinit cs4231_probe(struct platform_device *op)
2075+
static int cs4231_probe(struct platform_device *op)
20762076
{
20772077
#ifdef EBUS_SUPPORT
20782078
if (!strcmp(op->dev.of_node->parent->name, "ebus"))
@@ -2086,7 +2086,7 @@ static int __devinit cs4231_probe(struct platform_device *op)
20862086
return -ENODEV;
20872087
}
20882088

2089-
static int __devexit cs4231_remove(struct platform_device *op)
2089+
static int cs4231_remove(struct platform_device *op)
20902090
{
20912091
struct snd_cs4231 *chip = dev_get_drvdata(&op->dev);
20922092

@@ -2115,7 +2115,7 @@ static struct platform_driver cs4231_driver = {
21152115
.of_match_table = cs4231_match,
21162116
},
21172117
.probe = cs4231_probe,
2118-
.remove = __devexit_p(cs4231_remove),
2118+
.remove = cs4231_remove,
21192119
};
21202120

21212121
module_platform_driver(cs4231_driver);

‎sound/sparc/dbri.c‎

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -745,7 +745,7 @@ static void dbri_reset(struct snd_dbri *dbri)
745745
}
746746

747747
/* Lock must not be held before calling this */
748-
static void __devinit dbri_initialize(struct snd_dbri *dbri)
748+
static void dbri_initialize(struct snd_dbri *dbri)
749749
{
750750
s32 *cmd;
751751
u32 dma_addr;
@@ -1305,7 +1305,7 @@ to the DBRI via the CHI interface and few of the DBRI's PIO pins.
13051305
* Lock must not be held before calling it.
13061306
13071307
*/
1308-
static __devinit void cs4215_setup_pipes(struct snd_dbri *dbri)
1308+
static void cs4215_setup_pipes(struct snd_dbri *dbri)
13091309
{
13101310
unsigned long flags;
13111311

@@ -1338,7 +1338,7 @@ static __devinit void cs4215_setup_pipes(struct snd_dbri *dbri)
13381338
dbri_cmdwait(dbri);
13391339
}
13401340

1341-
static __devinit int cs4215_init_data(struct cs4215 *mm)
1341+
static int cs4215_init_data(struct cs4215 *mm)
13421342
{
13431343
/*
13441344
* No action, memory resetting only.
@@ -1630,7 +1630,7 @@ static int cs4215_prepare(struct snd_dbri *dbri, unsigned int rate,
16301630
/*
16311631
*
16321632
*/
1633-
static __devinit int cs4215_init(struct snd_dbri *dbri)
1633+
static int cs4215_init(struct snd_dbri *dbri)
16341634
{
16351635
u32 reg2 = sbus_readl(dbri->regs + REG2);
16361636
dprintk(D_MM, "cs4215_init: reg2=0x%x\n", reg2);
@@ -2217,7 +2217,7 @@ static struct snd_pcm_ops snd_dbri_ops = {
22172217
.pointer = snd_dbri_pointer,
22182218
};
22192219

2220-
static int __devinit snd_dbri_pcm(struct snd_card *card)
2220+
static int snd_dbri_pcm(struct snd_card *card)
22212221
{
22222222
struct snd_pcm *pcm;
22232223
int err;
@@ -2409,7 +2409,7 @@ static int snd_cs4215_put_single(struct snd_kcontrol *kcontrol,
24092409
.private_value = (entry) | ((shift) << 8) | ((mask) << 16) | \
24102410
((invert) << 24) },
24112411

2412-
static struct snd_kcontrol_new dbri_controls[] __devinitdata = {
2412+
static struct snd_kcontrol_new dbri_controls[] = {
24132413
{
24142414
.iface = SNDRV_CTL_ELEM_IFACE_MIXER,
24152415
.name = "Playback Volume",
@@ -2436,7 +2436,7 @@ static struct snd_kcontrol_new dbri_controls[] __devinitdata = {
24362436
CS4215_SINGLE("Mic boost", 4, 4, 1, 1)
24372437
};
24382438

2439-
static int __devinit snd_dbri_mixer(struct snd_card *card)
2439+
static int snd_dbri_mixer(struct snd_card *card)
24402440
{
24412441
int idx, err;
24422442
struct snd_dbri *dbri;
@@ -2500,7 +2500,7 @@ static void dbri_debug_read(struct snd_info_entry *entry,
25002500
}
25012501
#endif
25022502

2503-
static void __devinit snd_dbri_proc(struct snd_card *card)
2503+
static void snd_dbri_proc(struct snd_card *card)
25042504
{
25052505
struct snd_dbri *dbri = card->private_data;
25062506
struct snd_info_entry *entry;
@@ -2523,9 +2523,9 @@ static void __devinit snd_dbri_proc(struct snd_card *card)
25232523
*/
25242524
static void snd_dbri_free(struct snd_dbri *dbri);
25252525

2526-
static int __devinit snd_dbri_create(struct snd_card *card,
2527-
struct platform_device *op,
2528-
int irq, int dev)
2526+
static int snd_dbri_create(struct snd_card *card,
2527+
struct platform_device *op,
2528+
int irq, int dev)
25292529
{
25302530
struct snd_dbri *dbri = card->private_data;
25312531
int err;
@@ -2593,7 +2593,7 @@ static void snd_dbri_free(struct snd_dbri *dbri)
25932593
(void *)dbri->dma, dbri->dma_dvma);
25942594
}
25952595

2596-
static int __devinit dbri_probe(struct platform_device *op)
2596+
static int dbri_probe(struct platform_device *op)
25972597
{
25982598
struct snd_dbri *dbri;
25992599
struct resource *rp;
@@ -2663,7 +2663,7 @@ static int __devinit dbri_probe(struct platform_device *op)
26632663
return err;
26642664
}
26652665

2666-
static int __devexit dbri_remove(struct platform_device *op)
2666+
static int dbri_remove(struct platform_device *op)
26672667
{
26682668
struct snd_card *card = dev_get_drvdata(&op->dev);
26692669

@@ -2694,7 +2694,7 @@ static struct platform_driver dbri_sbus_driver = {
26942694
.of_match_table = dbri_match,
26952695
},
26962696
.probe = dbri_probe,
2697-
.remove = __devexit_p(dbri_remove),
2697+
.remove = dbri_remove,
26982698
};
26992699

27002700
module_platform_driver(dbri_sbus_driver);

0 commit comments

Comments
 (0)