diff options
author | Hans-Christian Egtvedt <hcegtvedt@atmel.com> | 2008-02-18 05:44:56 -0500 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2008-04-24 06:00:11 -0400 |
commit | 2eef1258e54722b1c4efac6e5760d2153f96c4b4 (patch) | |
tree | a940d5f36a4699ddedbd2c7dfd64a2567b12a54a /sound/spi/at73c213.c | |
parent | 310355c111dbae005269fe3fc39afdd60779bf5d (diff) |
[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>
Diffstat (limited to 'sound/spi/at73c213.c')
-rw-r--r-- | sound/spi/at73c213.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sound/spi/at73c213.c b/sound/spi/at73c213.c index 89d6e9c35140..b8860b26fc62 100644 --- a/sound/spi/at73c213.c +++ b/sound/spi/at73c213.c | |||
@@ -737,7 +737,7 @@ cleanup: | |||
737 | /* | 737 | /* |
738 | * Device functions | 738 | * Device functions |
739 | */ | 739 | */ |
740 | static int snd_at73c213_ssc_init(struct snd_at73c213 *chip) | 740 | static int __devinit snd_at73c213_ssc_init(struct snd_at73c213 *chip) |
741 | { | 741 | { |
742 | /* | 742 | /* |
743 | * Continuous clock output. | 743 | * Continuous clock output. |
@@ -767,7 +767,7 @@ static int snd_at73c213_ssc_init(struct snd_at73c213 *chip) | |||
767 | return 0; | 767 | return 0; |
768 | } | 768 | } |
769 | 769 | ||
770 | static int snd_at73c213_chip_init(struct snd_at73c213 *chip) | 770 | static int __devinit snd_at73c213_chip_init(struct snd_at73c213 *chip) |
771 | { | 771 | { |
772 | int retval; | 772 | int retval; |
773 | unsigned char dac_ctrl = 0; | 773 | unsigned char dac_ctrl = 0; |
@@ -933,7 +933,7 @@ out: | |||
933 | return retval; | 933 | return retval; |
934 | } | 934 | } |
935 | 935 | ||
936 | static int snd_at73c213_probe(struct spi_device *spi) | 936 | static int __devinit snd_at73c213_probe(struct spi_device *spi) |
937 | { | 937 | { |
938 | struct snd_card *card; | 938 | struct snd_card *card; |
939 | struct snd_at73c213 *chip; | 939 | struct snd_at73c213 *chip; |