Browse Source

[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: Hans-Christian Egtvedt <hcegtvedt@atmel.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
imx_3.10.17_1.0.0_ga
Hans-Christian Egtvedt 13 years ago
committed by Takashi Iwai
parent
commit
2eef1258e5
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      sound/spi/at73c213.c

+ 3
- 3
sound/spi/at73c213.c View File

@ -737,7 +737,7 @@ cleanup:
/*
* 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 @@ out:
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;


Loading…
Cancel
Save