From patchwork Fri May 3 09:09:22 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 16617 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ve0-f197.google.com (mail-ve0-f197.google.com [209.85.128.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 3B9BE23905 for ; Fri, 3 May 2013 09:22:41 +0000 (UTC) Received: by mail-ve0-f197.google.com with SMTP id jz10sf2619317veb.0 for ; Fri, 03 May 2013 02:22:31 -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=L6jErGqptDd2pLVEfkyqSqZLMxg+E+AbNPsdTmsGfWM=; b=ig00ixxRbWqP/y4SeWqhZrs1BYlUu58zM+l15H/HCIIxdydETlMO5k/5sSuzal0ACo 5BK8vTHpLh5LDDkVjY+yUqt73Pne6IMt7OlFSsMilmHNBhp0ZNlWDZgZBXI4zq69qdGJ gZ2ub03dude6f1XLg8UrAKS5+fp0SjyX0mTJRtrRw+6lkNZPT1VKSzxJkMdWCti1pLaC JJ4vYzGVq0M5hyeKqeIH/PEsaEmp3PqlBYwUNPMF53GnArIWw2Dvw2AvcxrX9OcdL9R+ TonSMrnbAWb7xSG9BeFVycwOG1oHM6Bhb69WH8rWTb2vAniFrqYOOeORDr0WrdtYtDA8 uEqw== X-Received: by 10.236.70.170 with SMTP id p30mr8220710yhd.5.1367572951792; Fri, 03 May 2013 02:22:31 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.86.232 with SMTP id s8ls1032754qez.94.gmail; Fri, 03 May 2013 02:22:31 -0700 (PDT) X-Received: by 10.58.15.193 with SMTP id z1mr3386757vec.40.1367572951447; Fri, 03 May 2013 02:22:31 -0700 (PDT) Received: from mail-ve0-x229.google.com (mail-ve0-x229.google.com [2607:f8b0:400c:c01::229]) by mx.google.com with ESMTPS id ec8si4733694vdb.72.2013.05.03.02.22.31 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 03 May 2013 02:22:31 -0700 (PDT) Received-SPF: neutral (google.com: 2607:f8b0:400c:c01::229 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::229; Received: by mail-ve0-f169.google.com with SMTP id jz10so1302138veb.14 for ; Fri, 03 May 2013 02:22:31 -0700 (PDT) X-Received: by 10.221.0.199 with SMTP id nn7mr3436154vcb.14.1367572951230; Fri, 03 May 2013 02:22:31 -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 nf2csp13217veb; Fri, 3 May 2013 02:22:30 -0700 (PDT) X-Received: by 10.68.172.65 with SMTP id ba1mr12989105pbc.166.1367572950176; Fri, 03 May 2013 02:22:30 -0700 (PDT) Received: from mail-pd0-f170.google.com (mail-pd0-f170.google.com [209.85.192.170]) by mx.google.com with ESMTPS id o6si7357457pac.138.2013.05.03.02.22.29 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 03 May 2013 02:22:30 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.192.170 is neither permitted nor denied by best guess record for domain of sachin.kamat@linaro.org) client-ip=209.85.192.170; Received: by mail-pd0-f170.google.com with SMTP id 10so826065pdi.29 for ; Fri, 03 May 2013 02:22:29 -0700 (PDT) X-Received: by 10.68.91.131 with SMTP id ce3mr12963385pbb.46.1367572949693; Fri, 03 May 2013 02:22:29 -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.26 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 03 May 2013 02:22:29 -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, Mika Westerberg Subject: [PATCH 4/6] ASoC: ep93xx: Remove redundant platform_set_drvdata() Date: Fri, 3 May 2013 14:39:22 +0530 Message-Id: <1367572164-19523-4-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: ALoCoQkadKrDKmSvR67Gz74ZKA8dlYHlu+v+bjd5MkcO1P0DWWDnLo5eDhX5CbMPEQ41BqhMGDB8 X-Original-Sender: sachin.kamat@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 2607:f8b0:400c:c01::229 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: Mika Westerberg --- sound/soc/cirrus/ep93xx-ac97.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/sound/soc/cirrus/ep93xx-ac97.c b/sound/soc/cirrus/ep93xx-ac97.c index 7798fbd..840c9b1 100644 --- a/sound/soc/cirrus/ep93xx-ac97.c +++ b/sound/soc/cirrus/ep93xx-ac97.c @@ -403,7 +403,6 @@ static int ep93xx_ac97_probe(struct platform_device *pdev) return 0; fail: - platform_set_drvdata(pdev, NULL); ep93xx_ac97_info = NULL; dev_set_drvdata(&pdev->dev, NULL); return ret; @@ -418,7 +417,6 @@ static int ep93xx_ac97_remove(struct platform_device *pdev) /* disable the AC97 controller */ ep93xx_ac97_write_reg(info, AC97GCR, 0); - platform_set_drvdata(pdev, NULL); ep93xx_ac97_info = NULL; dev_set_drvdata(&pdev->dev, NULL);