Skip to content

Commit

Permalink
[SOUND] sparc/amd7930: Use __devinit and __devinitdata as needed.
Browse files Browse the repository at this point in the history
Fixes section-mismatch errors.

Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
David S. Miller committed Sep 25, 2006
1 parent efdbc1a commit be5b6d3
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions sound/sparc/amd7930.c
Original file line number Diff line number Diff line change
Expand Up @@ -755,7 +755,7 @@ static struct snd_pcm_ops snd_amd7930_capture_ops = {
.pointer = snd_amd7930_capture_pointer,
};

static int __init snd_amd7930_pcm(struct snd_amd7930 *amd)
static int __devinit snd_amd7930_pcm(struct snd_amd7930 *amd)
{
struct snd_pcm *pcm;
int err;
Expand Down Expand Up @@ -870,7 +870,7 @@ static int snd_amd7930_put_volume(struct snd_kcontrol *kctl, struct snd_ctl_elem
return change;
}

static struct snd_kcontrol_new amd7930_controls[] __initdata = {
static struct snd_kcontrol_new amd7930_controls[] __devinitdata = {
{
.iface = SNDRV_CTL_ELEM_IFACE_MIXER,
.name = "Monitor Volume",
Expand Down Expand Up @@ -900,7 +900,7 @@ static struct snd_kcontrol_new amd7930_controls[] __initdata = {
},
};

static int __init snd_amd7930_mixer(struct snd_amd7930 *amd)
static int __devinit snd_amd7930_mixer(struct snd_amd7930 *amd)
{
struct snd_card *card;
int idx, err;
Expand Down Expand Up @@ -945,11 +945,11 @@ static struct snd_device_ops snd_amd7930_dev_ops = {
.dev_free = snd_amd7930_dev_free,
};

static int __init snd_amd7930_create(struct snd_card *card,
struct resource *rp,
unsigned int reg_size,
int irq, int dev,
struct snd_amd7930 **ramd)
static int __devinit snd_amd7930_create(struct snd_card *card,
struct resource *rp,
unsigned int reg_size,
int irq, int dev,
struct snd_amd7930 **ramd)
{
unsigned long flags;
struct snd_amd7930 *amd;
Expand Down Expand Up @@ -1013,7 +1013,7 @@ static int __init snd_amd7930_create(struct snd_card *card,
return 0;
}

static int __init amd7930_attach_common(struct resource *rp, int irq)
static int __devinit amd7930_attach_common(struct resource *rp, int irq)
{
static int dev_num;
struct snd_card *card;
Expand Down Expand Up @@ -1065,7 +1065,7 @@ static int __init amd7930_attach_common(struct resource *rp, int irq)
return err;
}

static int __init amd7930_obio_attach(struct device_node *dp)
static int __devinit amd7930_obio_attach(struct device_node *dp)
{
struct linux_prom_registers *regs;
struct linux_prom_irqs *irqp;
Expand Down

0 comments on commit be5b6d3

Please sign in to comment.