提交 2eef1258 编写于 作者: H Hans-Christian Egtvedt 提交者: Takashi Iwai

[ALSA] Add __devinit macro to at73c213 sound driver probe functions

This patch adds __devinit to the functions used when probing. Will also reduce
the memory footprint a bit if CONFIG_HOTPLUG is not enabled.
Signed-off-by: NHans-Christian Egtvedt <hcegtvedt@atmel.com>
Signed-off-by: NTakashi Iwai <tiwai@suse.de>
上级 310355c1
......@@ -737,7 +737,7 @@ static int __devinit snd_at73c213_mixer(struct snd_at73c213 *chip)
/*
* Device functions
*/
static int snd_at73c213_ssc_init(struct snd_at73c213 *chip)
static int __devinit snd_at73c213_ssc_init(struct snd_at73c213 *chip)
{
/*
* Continuous clock output.
......@@ -767,7 +767,7 @@ static int snd_at73c213_ssc_init(struct snd_at73c213 *chip)
return 0;
}
static int snd_at73c213_chip_init(struct snd_at73c213 *chip)
static int __devinit snd_at73c213_chip_init(struct snd_at73c213 *chip)
{
int retval;
unsigned char dac_ctrl = 0;
......@@ -933,7 +933,7 @@ static int __devinit snd_at73c213_dev_init(struct snd_card *card,
return retval;
}
static int snd_at73c213_probe(struct spi_device *spi)
static int __devinit snd_at73c213_probe(struct spi_device *spi)
{
struct snd_card *card;
struct snd_at73c213 *chip;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册