From patchwork Mon May 6 06:30:56 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jingoo Han X-Patchwork-Id: 2522731 Return-Path: X-Original-To: patchwork-linux-mmc@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id EB2E7DF230 for ; Mon, 6 May 2013 06:31:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752756Ab3EFGbM (ORCPT ); Mon, 6 May 2013 02:31:12 -0400 Received: from mailout4.samsung.com ([203.254.224.34]:11756 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752117Ab3EFGbL (ORCPT ); Mon, 6 May 2013 02:31:11 -0400 Received: from epcpsbgr5.samsung.com (u145.gpu120.samsung.co.kr [203.254.230.145]) by mailout4.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MMD003LY63LFZO0@mailout4.samsung.com> for linux-mmc@vger.kernel.org; Mon, 06 May 2013 15:30:57 +0900 (KST) Received: from epcpsbgm2.samsung.com ( [203.254.230.47]) by epcpsbgr5.samsung.com (EPCPMTA) with SMTP id D1.31.19350.12E47815; Mon, 06 May 2013 15:30:57 +0900 (KST) X-AuditID: cbfee691-b7fe56d000004b96-8b-51874e2190ea Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id 04.DE.01422.12E47815; Mon, 06 May 2013 15:30:57 +0900 (KST) Received: from DOJG1HAN03 ([12.23.120.99]) by mmp2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0MMD00EDI63K1211@mmp2.samsung.com>; Mon, 06 May 2013 15:30:56 +0900 (KST) From: Jingoo Han To: 'Chris Ball' Cc: linux-mmc@vger.kernel.org, Jingoo Han , 'Adrian Hunter' Subject: [PATCH 15/22] mmc: sdhci-acpi: remove unnecessary platform_set_drvdata() Date: Mon, 06 May 2013 15:30:56 +0900 Message-id: <005a01ce4a23$44350800$cc9f1800$@samsung.com> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7bit X-Mailer: Microsoft Outlook 14.0 Thread-index: Ac5KIyUDs8SBGIE1SrWjmpZNgcz+OA== Content-language: ko X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrCIsWRmVeSWpSXmKPExsVy+t8zfV1Fv/ZAg2VTuC1OPlnDZrH99UY2 i8sLL7FaHPnfz+jA4rF4z0smj0NX1jJ69G1ZxejxeZNcAEsUl01Kak5mWWqRvl0CV8aDzX4F ezgqHv3ZxNLA2MnexcjBISFgIvH5A3cXIyeQKSZx4d56ti5GLg4hgWWMEr+uLmKBSJhILP23 ByoxnVHi+cEfzBDOL6Cq7yvYQarYBNQkvnw5DGaLCChKbPl+HMxmFsiRaO3uArOFBYIl1szc DWazCKhKHLq2gQ3E5hWwlJix6jE7hC0o8WPyPRaIXi2J9TuPM0HY8hKb17xlhrhIQWLH2deM ELv0JA5O+QZVLyKx78U7RoiaZewS+xpSIHYJSHybfIgF4mNZiU0HoMZIShxccYNlAqPYLCSb ZyHZPAvJ5llINixgZFnFKJpakFxQnJReZKpXnJhbXJqXrpecn7uJERJjE3cw3j9gfYgxGWj9 RGYp0eR8YIzmlcQbGpsZWZiamBobmVuakSasJM6r3mIdKCSQnliSmp2aWpBaFF9UmpNafIiR iYNTqoHxfOULzeb/uqwb5mzQ++L/7fThLdmhQayPtO+d6fAUePRTT1yz3F9k2nEXbv3+puJl HJd2RFosltr/zS1AbZ/FuaKi3Bb54PXlG3WWcZ1bq+mqc+bxz76EJc3XvHfsfSrOlRz6T/iX pfeOEwKx8ox9GiJrrQ9nXt095U/WARWR6y+y5qo0599SYinOSDTUYi4qTgQA71SD+scCAAA= X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprMKsWRmVeSWpSXmKPExsVy+t9jQV1Fv/ZAg3mX2C1OPlnDZrH99UY2 i8sLL7FaHPnfz+jA4rF4z0smj0NX1jJ69G1ZxejxeZNcAEtUA6NNRmpiSmqRQmpecn5KZl66 rZJ3cLxzvKmZgaGuoaWFuZJCXmJuqq2Si0+ArltmDtBOJYWyxJxSoFBAYnGxkr4dpgmhIW66 FjCNEbq+IUFwPUYGaCBhHWPGg81+BXs4Kh792cTSwNjJ3sXIySEhYCKx9N8eNghbTOLCvfVA NheHkMB0RonnB38wQzi/GCV+fV8B1sEmoCbx5cthMFtEQFFiy/fjYDazQI5Ea3cXmC0sECyx ZuZuMJtFQFXi0LUNYBt4BSwlZqx6zA5hC0r8mHyPBaJXS2L9zuNMELa8xOY1b5khLlKQ2HH2 NSPELj2Jg1O+QdWLSOx78Y5xAqPALCSjZiEZNQvJqFlIWhYwsqxiFE0tSC4oTkrPNdIrTswt Ls1L10vOz93ECI7iZ9I7GFc1WBxiFOBgVOLhLXjSFijEmlhWXJl7iFGCg1lJhNdnL1CINyWx siq1KD++qDQntfgQYzLQpxOZpUST84EJJq8k3tDYxMzI0sjMwsjE3Jw0YSVx3oOt1oFCAumJ JanZqakFqUUwW5g4OKUaGLfZTNhirFLZbfryd87/hxKy+TaRRk85PX51KVU5TBBd28uT5uMd 5lbuaJ3U1FZn83ery9UrXyLut3BY/rc4PDfp0JXz2Yt3824IeehpXRHxb1f+4jRVxVvd92Z6 xffJ1RwQev4977ZMO5/U8u6M531bC3Y09mU9U2hytbh8qvJk0DuOOZZ2SizFGYmGWsxFxYkA 0yCERyYDAAA= DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org The driver core clears the driver data to NULL after device_release or on probe failure, since commit 0998d0631001288a5974afc0b2a5f568bcdecb4d (device-core: Ensure drvdata = NULL when no driver is bound). Thus, it is not needed to manually clear the device driver data to NULL. Signed-off-by: Jingoo Han Acked-by: Adrian Hunter --- drivers/mmc/host/sdhci-acpi.c | 2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/drivers/mmc/host/sdhci-acpi.c b/drivers/mmc/host/sdhci-acpi.c index 7bcf74b..8e6c4da 100644 --- a/drivers/mmc/host/sdhci-acpi.c +++ b/drivers/mmc/host/sdhci-acpi.c @@ -211,7 +211,6 @@ static int sdhci_acpi_probe(struct platform_device *pdev) return 0; err_free: - platform_set_drvdata(pdev, NULL); sdhci_free_host(c->host); return err; } @@ -230,7 +229,6 @@ static int sdhci_acpi_remove(struct platform_device *pdev) dead = (sdhci_readl(c->host, SDHCI_INT_STATUS) == ~0); sdhci_remove_host(c->host, dead); - platform_set_drvdata(pdev, NULL); sdhci_free_host(c->host); return 0;