Skip to contentSkip to conversation

sound: fix compile error (wrong declaration of devinitdata)

PATCH Applied Andreas Herrmann 2 participants 2 messages Jun 19, 2007 – Jun 20, 2007 Sound

lore
Share & tools
lore
#0 lore raw

PATCH 9/12 sound: fix compile error (wrong declaration of devinitdata)

Fix compile error:

CC sound/pci/ice1712/prodigy192.o
sound/pci/ice1712/prodigy192.c:708: error: ak4114_controls causes a section type conflict

... but __initdata cannot be "const".

---
 sound/pci/ice1712/prodigy192.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
sound/pci/ice1712/prodigy192.c +1 -1
index f03c02c..4bae730 100644
@@ -705,7 +705,7 @@ static int ak4114_input_sw_put(struct snd_kcontrol *kcontrol,
 }
 
 
-static const struct snd_kcontrol_new ak4114_controls[] __devinitdata = {
+static struct snd_kcontrol_new ak4114_controls[] __devinitdata = {
 	{
 		.iface = SNDRV_CTL_ELEM_IFACE_MIXER,
 		.name = "MIODIO IEC958 Capture Input",
Signature · 1 line
1.5.0.7
Applied
#1 lore raw

At Wed, 20 Jun 2007 00:51:20 +0200,

Quoted 9 lines · Andreas Herrmann

Fix compile error:

CC sound/pci/ice1712/prodigy192.o
sound/pci/ice1712/prodigy192.c:708: error: ak4114_controls causes a section type conflict

... but __initdata cannot be "const".

Thanks, applied to ALSA tree now.

Takashi