Skip to content

Commit

Permalink
ALSA: ASoC - Fix module init entry for twl4030.c
Browse files Browse the repository at this point in the history
Fixed the function name of module init entry for twl4030.c, which
conflicted with the existing hardware init function:
  sound/soc/codecs/twl4030.c:1278: error: conflicting types for 'twl4030_init'
  sound/soc/codecs/twl4030.c:1187: error: previous definition of 'twl4030_init' was here

Also fixed the section type of init function.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
  • Loading branch information
Takashi Iwai committed Dec 10, 2008
1 parent 471716f commit 24e07db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sound/soc/codecs/twl4030.c
Original file line number Diff line number Diff line change
Expand Up @@ -1275,11 +1275,11 @@ struct snd_soc_codec_device soc_codec_dev_twl4030 = {
};
EXPORT_SYMBOL_GPL(soc_codec_dev_twl4030);

static int __devinit twl4030_init(void)
static int __init twl4030_modinit(void)
{
return snd_soc_register_dai(&twl4030_dai);
}
module_init(twl4030_init);
module_init(twl4030_modinit);

static void __exit twl4030_exit(void)
{
Expand Down

0 comments on commit 24e07db

Please sign in to comment.