From patchwork Fri May 3 09:09:24 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 16619 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qe0-f70.google.com (mail-qe0-f70.google.com [209.85.128.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id C676E23905 for ; Fri, 3 May 2013 09:22:46 +0000 (UTC) Received: by mail-qe0-f70.google.com with SMTP id b10sf2667802qen.1 for ; Fri, 03 May 2013 02:22:37 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:mime-version:x-beenthere:x-received:received-spf :x-received:x-forwarded-to:x-forwarded-for:delivered-to:x-received :received-spf:x-received:from:to:cc:subject:date:message-id:x-mailer :in-reply-to:references:x-gm-message-state:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-google-group-id:list-post:list-help:list-archive:list-unsubscribe; bh=a/D8RWQ/Lgtr0+S9wyPiPygU91Cx5JcYQiKsQv+Tgdw=; b=e1EVMAxvzLeaZwIi5H7pvgVLiOrdRagfD0ZvfGEDDBSjpgUxJIoi11zvJ2mPjfFfNj 9FRU5Fg+LnQ0FwnoCx8s0qFt1ig9aSk4tePR4SvJ7lZp7UIQ7eKaBP8/bnR/7Ve7V3XO hISw67uirouNXU1S7akB3lmUM8mz5XMuRLC3qVnVQ6aDha1kuGpZhO/A3WMGXmeAa/nb oixp3GpE0B0ci9VjJjj9igV8rK/lzBGHNSXFOkClIlc8A7BNKpAg3hSbhWLFYs5RDUW/ K4lz/NJOcS9J7O6wH2vH8HnZsOWz8G5j2+xPgkEthxOubQanOe4JYWGq1zmEzJRZd6G4 OVqA== X-Received: by 10.236.87.79 with SMTP id x55mr545556yhe.54.1367572957453; Fri, 03 May 2013 02:22:37 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.76.74 with SMTP id i10ls1802246qew.52.gmail; Fri, 03 May 2013 02:22:37 -0700 (PDT) X-Received: by 10.52.165.36 with SMTP id yv4mr2009430vdb.31.1367572957246; Fri, 03 May 2013 02:22:37 -0700 (PDT) Received: from mail-vc0-f170.google.com (mail-vc0-f170.google.com [209.85.220.170]) by mx.google.com with ESMTPS id se7si4739465vec.9.2013.05.03.02.22.37 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 03 May 2013 02:22:37 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.170 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.170; Received: by mail-vc0-f170.google.com with SMTP id gf12so1264194vcb.1 for ; Fri, 03 May 2013 02:22:37 -0700 (PDT) X-Received: by 10.220.189.9 with SMTP id dc9mr3382127vcb.8.1367572957113; Fri, 03 May 2013 02:22:37 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.58.127.98 with SMTP id nf2csp13223veb; Fri, 3 May 2013 02:22:36 -0700 (PDT) X-Received: by 10.66.156.68 with SMTP id wc4mr13757847pab.58.1367572956267; Fri, 03 May 2013 02:22:36 -0700 (PDT) Received: from mail-pd0-f176.google.com (mail-pd0-f176.google.com [209.85.192.176]) by mx.google.com with ESMTPS id lm2si7389551pab.6.2013.05.03.02.22.35 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 03 May 2013 02:22:36 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.192.176 is neither permitted nor denied by best guess record for domain of sachin.kamat@linaro.org) client-ip=209.85.192.176; Received: by mail-pd0-f176.google.com with SMTP id x10so820613pdj.7 for ; Fri, 03 May 2013 02:22:35 -0700 (PDT) X-Received: by 10.66.187.231 with SMTP id fv7mr13811504pac.46.1367572955811; Fri, 03 May 2013 02:22:35 -0700 (PDT) Received: from linaro.sisodomain.com ([115.113.119.130]) by mx.google.com with ESMTPSA id ea15sm12070993pad.16.2013.05.03.02.22.32 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 03 May 2013 02:22:35 -0700 (PDT) From: Sachin Kamat To: alsa-devel@alsa-project.org Cc: broonie@kernel.org, tiwai@suse.de, sachin.kamat@linaro.org, patches@linaro.org, Lars-Peter Clausen Subject: [PATCH 6/6] ASoC: jz4740: Remove redundant platform_set_drvdata() Date: Fri, 3 May 2013 14:39:24 +0530 Message-Id: <1367572164-19523-6-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1367572164-19523-1-git-send-email-sachin.kamat@linaro.org> References: <1367572164-19523-1-git-send-email-sachin.kamat@linaro.org> X-Gm-Message-State: ALoCoQlLFmgOK2cQeaGTgmQF0KqI+htKaYWSdO4+44T/CLoMNFKrec50YUY7ylNJ5Q+Buzo/57Xj X-Original-Sender: sachin.kamat@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.170 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , 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 Cc: Lars-Peter Clausen Acked-by: Lars-Peter Clausen --- sound/soc/codecs/jz4740.c | 2 -- sound/soc/jz4740/jz4740-i2s.c | 1 - 2 files changed, 3 deletions(-) diff --git a/sound/soc/codecs/jz4740.c b/sound/soc/codecs/jz4740.c index 5f607b3..bcebd1a 100644 --- a/sound/soc/codecs/jz4740.c +++ b/sound/soc/codecs/jz4740.c @@ -384,8 +384,6 @@ static int jz4740_codec_remove(struct platform_device *pdev) { snd_soc_unregister_codec(&pdev->dev); - platform_set_drvdata(pdev, NULL); - return 0; } diff --git a/sound/soc/jz4740/jz4740-i2s.c b/sound/soc/jz4740/jz4740-i2s.c index 9a12644..cafc6ed 100644 --- a/sound/soc/jz4740/jz4740-i2s.c +++ b/sound/soc/jz4740/jz4740-i2s.c @@ -509,7 +509,6 @@ static int jz4740_i2s_dev_remove(struct platform_device *pdev) iounmap(i2s->base); release_mem_region(i2s->mem->start, resource_size(i2s->mem)); - platform_set_drvdata(pdev, NULL); kfree(i2s); return 0;