From patchwork Mon May 20 08:38:39 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 17057 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qc0-f197.google.com (mail-qc0-f197.google.com [209.85.216.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id CB32120F30 for ; Mon, 20 May 2013 08:53:39 +0000 (UTC) Received: by mail-qc0-f197.google.com with SMTP id d1sf6528025qcz.8 for ; Mon, 20 May 2013 01:52:52 -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=mVvVC4IFJyEkxEIN8ikgzttJz4qwYWdjWSoSq9F/5JE=; b=LK/fdcvHj1/ojNwYTtmSJTbEO7vnmJTlR8wVxVW8MGlFdpCF3BwNqJ+4Qh2rYKOq5G 0PYskcspOfAtAYX/fm6sq7JN1mIl3tzBvqoqi/brscjk5c8pnS+FnTFPEwuFvhHguRl6 OZuOOcQXyjaiVAdCflKS0hA5AL80Ddjknr6ZIYFY3VepvLyAMeZWVbuS9asjqBt/dUnJ Ym3HjdgJCg6ax2+6/yQfnt5jgDn8/L+FQLi0kUG9cAHtXnUN6NgYfWsQlB/OA3FG8EQT SCjazuy3D5rvWJn0kSq8Cdewg1kggK6d9IZJSxAVZVkxIW7Swq8Hsy43uVkukm1KMFsn 5xPg== X-Received: by 10.224.130.195 with SMTP id u3mr34491569qas.1.1369039970000; Mon, 20 May 2013 01:52:50 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.106.105 with SMTP id gt9ls442843qeb.32.gmail; Mon, 20 May 2013 01:52:49 -0700 (PDT) X-Received: by 10.52.165.76 with SMTP id yw12mr10844326vdb.93.1369039969753; Mon, 20 May 2013 01:52:49 -0700 (PDT) Received: from mail-vb0-x235.google.com (mail-vb0-x235.google.com [2607:f8b0:400c:c02::235]) by mx.google.com with ESMTPS id 4si9365348vcd.64.2013.05.20.01.52.49 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 20 May 2013 01:52:49 -0700 (PDT) Received-SPF: neutral (google.com: 2607:f8b0:400c:c02::235 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:c02::235; Received: by mail-vb0-f53.google.com with SMTP id i3so3568044vbh.26 for ; Mon, 20 May 2013 01:52:49 -0700 (PDT) X-Received: by 10.220.112.16 with SMTP id u16mr3630296vcp.40.1369039969582; Mon, 20 May 2013 01:52:49 -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 c10csp73765vcs; Mon, 20 May 2013 01:52:49 -0700 (PDT) X-Received: by 10.67.14.70 with SMTP id fe6mr58973794pad.195.1369039968638; Mon, 20 May 2013 01:52:48 -0700 (PDT) Received: from mail-pb0-x22c.google.com (mail-pb0-x22c.google.com [2607:f8b0:400e:c01::22c]) by mx.google.com with ESMTPS id tw9si16252554pac.187.2013.05.20.01.52.48 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 20 May 2013 01:52:48 -0700 (PDT) Received-SPF: neutral (google.com: 2607:f8b0:400e:c01::22c is neither permitted nor denied by best guess record for domain of sachin.kamat@linaro.org) client-ip=2607:f8b0:400e:c01::22c; Received: by mail-pb0-f44.google.com with SMTP id wz12so889635pbc.31 for ; Mon, 20 May 2013 01:52:48 -0700 (PDT) X-Received: by 10.68.88.129 with SMTP id bg1mr58979694pbb.10.1369039968272; Mon, 20 May 2013 01:52:48 -0700 (PDT) Received: from linaro.sisodomain.com ([115.113.119.130]) by mx.google.com with ESMTPSA id ya4sm23252056pbb.24.2013.05.20.01.52.44 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 20 May 2013 01:52:47 -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, Stas Sergeev Subject: [PATCH 06/11] ALSA: pcsp: Remove redundant platform_set_drvdata() Date: Mon, 20 May 2013 14:08:39 +0530 Message-Id: <1369039124-32590-6-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: ALoCoQlhjXFXHbxmr4OlMvO9t5wo0RhIXbdSeu6lG+OzsA623aLGmQG3vsvxHkPdR6p8FcD1jb8d X-Original-Sender: sachin.kamat@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 2607:f8b0:400c:c02::235 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: Stas Sergeev --- sound/drivers/pcsp/pcsp.c | 1 - 1 file changed, 1 deletion(-) diff --git a/sound/drivers/pcsp/pcsp.c b/sound/drivers/pcsp/pcsp.c index 7a5fdb9..1c19cd7 100644 --- a/sound/drivers/pcsp/pcsp.c +++ b/sound/drivers/pcsp/pcsp.c @@ -189,7 +189,6 @@ static int pcsp_remove(struct platform_device *dev) struct snd_pcsp *chip = platform_get_drvdata(dev); alsa_card_pcsp_exit(chip); pcspkr_input_remove(chip->input_dev); - platform_set_drvdata(dev, NULL); return 0; }