Skip to content

Commit

Permalink
[ALSA] Add __devinit macro to at73c213 sound driver probe functions
Browse files Browse the repository at this point in the history
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: Hans-Christian Egtvedt <[email protected]>
Signed-off-by: Takashi Iwai <[email protected]>
  • Loading branch information
Hans-Christian Egtvedt authored and tiwai committed Apr 24, 2008
1 parent 310355c commit 2eef125
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sound/spi/at73c213.c
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 2eef125

Please sign in to comment.