From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Ferre Subject: Re: [PATCH 1/1] ALSA: atmel: Remove redundant platform_set_drvdata() Date: Fri, 3 May 2013 09:16:52 +0200 Message-ID: <51836464.4020909@atmel.com> References: <1367564188-14674-1-git-send-email-sachin.kamat@linaro.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit Return-path: Received: from eusmtp01.atmel.com (eusmtp01.atmel.com [212.144.249.243]) by alsa0.perex.cz (Postfix) with ESMTP id 0945A26165F for ; Fri, 3 May 2013 09:17:11 +0200 (CEST) In-Reply-To: <1367564188-14674-1-git-send-email-sachin.kamat@linaro.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org To: Sachin Kamat Cc: tiwai@suse.de, alsa-devel@alsa-project.org, egtvedt@samfundet.no List-Id: alsa-devel@alsa-project.org On 03/05/2013 08:56, Sachin Kamat : > Commit 0998d06310 (device-core: Ensure drvdata = NULL when no > driver is bound) removes the need to set driver data field to > NULL. > > Signed-off-by: Sachin Kamat yes, as it is not needed anymore it may make sense to remove these calls... Acked-by: Nicolas Ferre > --- > sound/atmel/abdac.c | 2 -- > sound/atmel/ac97c.c | 2 -- > 2 files changed, 4 deletions(-) > > diff --git a/sound/atmel/abdac.c b/sound/atmel/abdac.c > index 071ce1b..872d59e 100644 > --- a/sound/atmel/abdac.c > +++ b/sound/atmel/abdac.c > @@ -583,8 +583,6 @@ static int atmel_abdac_remove(struct platform_device *pdev) > free_irq(dac->irq, dac); > snd_card_free(card); > > - platform_set_drvdata(pdev, NULL); > - > return 0; > } > > diff --git a/sound/atmel/ac97c.c b/sound/atmel/ac97c.c > index 6b7e2b5..ae63d22 100644 > --- a/sound/atmel/ac97c.c > +++ b/sound/atmel/ac97c.c > @@ -1199,8 +1199,6 @@ static int atmel_ac97c_remove(struct platform_device *pdev) > snd_card_set_dev(card, NULL); > snd_card_free(card); > > - platform_set_drvdata(pdev, NULL); > - > return 0; > } > > -- Nicolas Ferre