From patchwork Mon May 20 08:38:44 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 17062 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-gh0-f198.google.com (mail-gh0-f198.google.com [209.85.160.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id BEF6F20F30 for ; Mon, 20 May 2013 08:53:57 +0000 (UTC) Received: by mail-gh0-f198.google.com with SMTP id r13sf7330276ghr.5 for ; Mon, 20 May 2013 01:53:09 -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=lmB3poLQcIdgSytd3e/ZMRnlfBTGzRCkd7e3uZmdE2s=; b=Nmyu5fLsSvccRAtguGE66gWaCBEYCTmycUITF60ndE3G+ABohk7I1zDiqd4vBquzY0 CenJuytnqc9TSAesjTEa9SUx2DXPjFoR8f2xIQr87c9fH6Ldi+/10R9uGkmYiNo1xfRH OQNK/Bux5AIiMW3k4GI6QfXNAJXYVJbJVxpDU3DBAH7A8hOSQe2XLYmnsL1OcC5x9Glr cQFw+5f1wqr/WZUMJjMMVoejLPq0TuJ/vlJKTEvjNKES43Iqw7nRuDn17Rlr7drSO5mD MSUpZ5h451SlSarbOR38wbYdfo+Cs4ocm//OwbQDM5odGLoUUF+TTSr3sz/PcYAYgpes fwzQ== X-Received: by 10.236.113.203 with SMTP id a51mr31196240yhh.31.1369039989901; Mon, 20 May 2013 01:53:09 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.51.69 with SMTP id i5ls2639362qeo.89.gmail; Mon, 20 May 2013 01:53:09 -0700 (PDT) X-Received: by 10.58.75.73 with SMTP id a9mr20628821vew.25.1369039989759; Mon, 20 May 2013 01:53:09 -0700 (PDT) Received: from mail-ve0-x231.google.com (mail-ve0-x231.google.com [2607:f8b0:400c:c01::231]) by mx.google.com with ESMTPS id gr7si11239108vdc.64.2013.05.20.01.53.09 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 20 May 2013 01:53:09 -0700 (PDT) Received-SPF: neutral (google.com: 2607:f8b0:400c:c01::231 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=2607:f8b0:400c:c01::231; Received: by mail-ve0-f177.google.com with SMTP id ox1so5393551veb.22 for ; Mon, 20 May 2013 01:53:09 -0700 (PDT) X-Received: by 10.52.34.114 with SMTP id y18mr5810396vdi.56.1369039989601; Mon, 20 May 2013 01:53:09 -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.220.126.138 with SMTP id c10csp73781vcs; Mon, 20 May 2013 01:53:09 -0700 (PDT) X-Received: by 10.66.67.11 with SMTP id j11mr29295297pat.220.1369039988555; Mon, 20 May 2013 01:53:08 -0700 (PDT) Received: from mail-pb0-x22a.google.com (mail-pb0-x22a.google.com [2607:f8b0:400e:c01::22a]) by mx.google.com with ESMTPS id bd8si15798019pad.193.2013.05.20.01.53.08 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 20 May 2013 01:53:08 -0700 (PDT) Received-SPF: neutral (google.com: 2607:f8b0:400e:c01::22a is neither permitted nor denied by best guess record for domain of sachin.kamat@linaro.org) client-ip=2607:f8b0:400e:c01::22a; Received: by mail-pb0-f42.google.com with SMTP id uo1so724590pbc.15 for ; Mon, 20 May 2013 01:53:08 -0700 (PDT) X-Received: by 10.68.166.229 with SMTP id zj5mr34691638pbb.167.1369039988188; Mon, 20 May 2013 01:53:08 -0700 (PDT) Received: from linaro.sisodomain.com ([115.113.119.130]) by mx.google.com with ESMTPSA id ya4sm23252056pbb.24.2013.05.20.01.53.03 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 20 May 2013 01:53:07 -0700 (PDT) From: Sachin Kamat To: alsa-devel@alsa-project.org Cc: tiwai@suse.de, perex@perex.cz, sachin.kamat@linaro.org, patches@linaro.org, Rafael Ignacio Zurita Subject: [PATCH 11/11] ALSA: sh_dac_audio: Remove redundant platform_set_drvdata() Date: Mon, 20 May 2013 14:08:44 +0530 Message-Id: <1369039124-32590-11-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1369039124-32590-1-git-send-email-sachin.kamat@linaro.org> References: <1369039124-32590-1-git-send-email-sachin.kamat@linaro.org> X-Gm-Message-State: ALoCoQmJ/3cj/1kIqswF0OuS2v/YIYAbyslhlcYMnURdDlRmGreSZmxXza1t/MFqFykDiniDni50 X-Original-Sender: sachin.kamat@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 2607:f8b0:400c:c01::231 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: Rafael Ignacio Zurita --- sound/sh/sh_dac_audio.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/sound/sh/sh_dac_audio.c b/sound/sh/sh_dac_audio.c index e68c4fc..7c9422c 100644 --- a/sound/sh/sh_dac_audio.c +++ b/sound/sh/sh_dac_audio.c @@ -290,8 +290,6 @@ static int snd_sh_dac_pcm(struct snd_sh_dac *chip, int device) static int snd_sh_dac_remove(struct platform_device *devptr) { snd_card_free(platform_get_drvdata(devptr)); - platform_set_drvdata(devptr, NULL); - return 0; }