From patchwork Mon May 20 08:38:41 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 17059 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ye0-f199.google.com (mail-ye0-f199.google.com [209.85.213.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id AB8DB20F30 for ; Mon, 20 May 2013 08:53:44 +0000 (UTC) Received: by mail-ye0-f199.google.com with SMTP id l13sf2547046yen.6 for ; Mon, 20 May 2013 01:52:56 -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=s87r7Ws+/iUbikyuR5kOVwZRHxUHm2EokwLowCY+Fws=; b=eI3fDzUJyoLQ755bS2HwOUys4hTm7+BbbSL3apvkEhmpi7EFRtDZh8UYUAuTTdaOUy up/ONxr9oQPVOmk8wknT5SdiUerY9SS+gpvAYGACTwMqYEj4xlpPNiFp6F4Jpgm8Q8+U 5Hmj+nuwTB27a+R6ndKpqaIEXONoDqvrKKe+/aZlM9UIQn7V+TRewMu9zS+kneLPPm5q cP9kIzb55cUYvYE5uvNmXign/pxYEb6J89YQULh/pXxT3lGdC/7cVqQ7eNxwGxqzYz2b PzgOMAYcQEDtUNvOj/eiSKjiRCJ/6QfZEirJtrLnXZRveQ2vkLP/QdplSULai7JclxwD Tdxw== X-Received: by 10.224.165.130 with SMTP id i2mr34483844qay.2.1369039976719; Mon, 20 May 2013 01:52:56 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.103.132 with SMTP id fw4ls2515255qeb.17.gmail; Mon, 20 May 2013 01:52:56 -0700 (PDT) X-Received: by 10.52.92.141 with SMTP id cm13mr7780882vdb.117.1369039976563; Mon, 20 May 2013 01:52:56 -0700 (PDT) Received: from mail-ve0-x22c.google.com (mail-ve0-x22c.google.com [2607:f8b0:400c:c01::22c]) by mx.google.com with ESMTPS id p8si11245754vdv.44.2013.05.20.01.52.56 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 20 May 2013 01:52:56 -0700 (PDT) Received-SPF: neutral (google.com: 2607:f8b0:400c:c01::22c 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::22c; Received: by mail-ve0-f172.google.com with SMTP id b10so5432102vea.17 for ; Mon, 20 May 2013 01:52:56 -0700 (PDT) X-Received: by 10.220.92.195 with SMTP id s3mr34095379vcm.9.1369039976379; Mon, 20 May 2013 01:52:56 -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 c10csp73770vcs; Mon, 20 May 2013 01:52:55 -0700 (PDT) X-Received: by 10.66.4.10 with SMTP id g10mr60841205pag.217.1369039975312; Mon, 20 May 2013 01:52:55 -0700 (PDT) Received: from mail-da0-x22a.google.com (mail-da0-x22a.google.com [2607:f8b0:400e:c00::22a]) by mx.google.com with ESMTPS id wl4si15952667pbc.239.2013.05.20.01.52.55 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 20 May 2013 01:52:55 -0700 (PDT) Received-SPF: neutral (google.com: 2607:f8b0:400e:c00::22a is neither permitted nor denied by best guess record for domain of sachin.kamat@linaro.org) client-ip=2607:f8b0:400e:c00::22a; Received: by mail-da0-f42.google.com with SMTP id r6so2491809dad.1 for ; Mon, 20 May 2013 01:52:54 -0700 (PDT) X-Received: by 10.68.225.170 with SMTP id rl10mr16452081pbc.152.1369039974930; Mon, 20 May 2013 01:52:54 -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.52 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 20 May 2013 01:52:54 -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 Subject: [PATCH 08/11] ALSA: virmidi: Remove redundant platform_set_drvdata() Date: Mon, 20 May 2013 14:08:41 +0530 Message-Id: <1369039124-32590-8-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: ALoCoQkj7T4CU4Iq7dtSMiwhLwUALlLojaTyyx5hNaaw0h08Sl+EIAB1dJdNWSJo3Uuc+ZjIrSJZ X-Original-Sender: sachin.kamat@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 2607:f8b0:400c:c01::22c 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 --- sound/drivers/virmidi.c | 1 - 1 file changed, 1 deletion(-) diff --git a/sound/drivers/virmidi.c b/sound/drivers/virmidi.c index cc4be88..ace3879 100644 --- a/sound/drivers/virmidi.c +++ b/sound/drivers/virmidi.c @@ -132,7 +132,6 @@ static int snd_virmidi_probe(struct platform_device *devptr) static int snd_virmidi_remove(struct platform_device *devptr) { snd_card_free(platform_get_drvdata(devptr)); - platform_set_drvdata(devptr, NULL); return 0; }