From: Takashi Iwai Subject: Re: [PATCH 1/1] Add __devinit macro to at73c213 sound driver probe functions Date: Mon, 18 Feb 2008 11:46:59 +0100 Message-ID: References: <12030681261798-git-send-email-hcegtvedt@atmel.com> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mx2.suse.de (mx2.suse.de [195.135.220.15]) by alsa0.perex.cz (Postfix) with ESMTP id 6559A243F6 for ; Mon, 18 Feb 2008 11:47:00 +0100 (CET) In-Reply-To: <12030681261798-git-send-email-hcegtvedt@atmel.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: alsa-devel-bounces@alsa-project.org Errors-To: alsa-devel-bounces@alsa-project.org To: Hans-Christian Egtvedt Cc: alsa-devel@alsa-project.org, kernel@avr32linux.org List-Id: alsa-devel@alsa-project.org At Fri, 15 Feb 2008 10:35:26 +0100, Hans-Christian Egtvedt wrote: > > 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 Thanks, applied to ALSA tree now. Takashi > --- > 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 fee869b..83fa475 100644 > --- a/sound/spi/at73c213.c > +++ b/sound/spi/at73c213.c > @@ -744,7 +744,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. > @@ -774,7 +774,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; > @@ -939,7 +939,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; > -- > 1.5.2.5 > > _______________________________________________ > Alsa-devel mailing list > Alsa-devel@alsa-project.org > http://mailman.alsa-project.org/mailman/listinfo/alsa-devel >