From patchwork Mon May 6 06:39:27 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jingoo Han X-Patchwork-Id: 2522791 Return-Path: X-Original-To: patchwork-linux-mmc@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id 1DBD93FC5A for ; Mon, 6 May 2013 06:39:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752804Ab3EFGja (ORCPT ); Mon, 6 May 2013 02:39:30 -0400 Received: from mailout4.samsung.com ([203.254.224.34]:13622 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752777Ab3EFGj3 (ORCPT ); Mon, 6 May 2013 02:39:29 -0400 Received: from epcpsbgr1.samsung.com (u141.gpu120.samsung.co.kr [203.254.230.141]) by mailout4.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MMD009TI6HLZAI0@mailout4.samsung.com> for linux-mmc@vger.kernel.org; Mon, 06 May 2013 15:39:28 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [203.254.230.48]) by epcpsbgr1.samsung.com (EPCPMTA) with SMTP id E9.92.31024.02057815; Mon, 06 May 2013 15:39:28 +0900 (KST) X-AuditID: cbfee68d-b7f016d000007930-73-51875020f747 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 6A.03.08957.02057815; Mon, 06 May 2013 15:39:28 +0900 (KST) Received: from DOJG1HAN03 ([12.23.120.99]) by mmp1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0MMD00F2T6HRRVD0@mmp1.samsung.com>; Mon, 06 May 2013 15:39:28 +0900 (KST) From: Jingoo Han To: 'Chris Ball' Cc: linux-mmc@vger.kernel.org, Jingoo Han , Guennadi Liakhovetski , 'Ian Molton' Subject: [PATCH 21/22] mmc: tmio_mmc: remove unnecessary platform_set_drvdata() Date: Mon, 06 May 2013 15:39:27 +0900 Message-id: <006001ce4a24$74cbe280$5e63a780$@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: Ac5KJFva6+z3X9ZHRvWWPBT/pftvlg== Content-language: ko X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrAIsWRmVeSWpSXmKPExsVy+t8zA12FgPZAg48nZCy2v97IZvF+4zwm i/v7FzBaXF54idXiyP9+RgdWjw8f4zwOXVnL6PG3r5vVo2/LKkaPz5vkAlijuGxSUnMyy1KL 9O0SuDK61t9gK9jPXnH43ny2BsZFbF2MnBwSAiYSszfuY4ewxSQu3FsPFOfiEBJYxijROncB UIIDrGj1Lj6I+CJGif/HjzBDOL8YJeb96WEF6WYTUJP48uUw2CQRAUWJLd+Ps4MUMQtMZZTY PeU7M0hCWMBfovXtXDCbRUBVYvqlvYwgNq+ApcTRC1tZIGxBiR+T74HZzAJaEut3HmeCsOUl Nq95ywxxqoLEjrOvGSGW6Um8+X6PDaJGRGLfi3eMIIslBA6xS3Re+M8GsUxA4tvkQywQ78hK bDoANUdS4uCKGywTGMVmIVk9C8nqWUhWz0KyYgEjyypG0dSC5ILipPQiQ73ixNzi0rx0veT8 3E2MkNjr3cF4+4D1IcZkoPUTmaVEk/OBsZtXEm9obGZkYWpiamxkbmlGmrCSOK9ai3WgkEB6 YklqdmpqQWpRfFFpTmrxIUYmDk6pBsZrc7b+aY+af2IKq/a6GDVbZ78Hfyu5IjuvzJZJfivu 88K6XeLhiqWLhIS2fnv7LdBKSWUBm+6ch35pZW+nL0vX9J1aWHg7e7bkW4/vHx4zP5IX6GHK WBrkpdPTcfXr2qbDsnzZXmlP9/hszyn8UMjz09ZhQ6Np4aqiT0beOQvX6hQU9hTUFyixFGck GmoxFxUnAgAg6S3t0wIAAA== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprLKsWRmVeSWpSXmKPExsVy+t9jAV2FgPZAg93PJCy2v97IZvF+4zwm i/v7FzBaXF54idXiyP9+RgdWjw8f4zwOXVnL6PG3r5vVo2/LKkaPz5vkAlijGhhtMlITU1KL FFLzkvNTMvPSbZW8g+Od403NDAx1DS0tzJUU8hJzU22VXHwCdN0yc4CWKymUJeaUAoUCEouL lfTtME0IDXHTtYBpjND1DQmC6zEyQAMJ6xgzutbfYCvYz15x+N58tgbGRWxdjBwcEgImEqt3 8XUxcgKZYhIX7q0HCnNxCAksYpT4f/wIM4Tzi1Fi3p8eVpAqNgE1iS9fDrOD2CICihJbvh9n ByliFpjKKLF7yndmkISwgL9E69u5YDaLgKrE9Et7GUFsXgFLiaMXtrJA2IISPybfA7OZBbQk 1u88zgRhy0tsXvOWGeIkBYkdZ18zQizTk3jz/R4bRI2IxL4X7xgnMArMQjJqFpJRs5CMmoWk ZQEjyypG0dSC5ILipPRcQ73ixNzi0rx0veT83E2M4Mh+JrWDcWWDxSFGAQ5GJR7egidtgUKs iWXFlbmHGCU4mJVEeH32AoV4UxIrq1KL8uOLSnNSiw8xJgN9OpFZSjQ5H5h08kriDY1NzIws jcwsjEzMzUkTVhLnPdBqHSgkkJ5YkpqdmlqQWgSzhYmDU6qBUXc1q2B3UIXjF73HVuYSn2q+ xrr/md6srJ2Wf3fWPH2bO/PyViru4HEvuOfyeqJZwK2SEr+ld44fCs+3/rZDMsTD5zeH9jP/ Cz3Nu+RyCp383NLeN988fm7ytabzGffv9rmG/0/TC7LfHnHEcdWukyemHWY89v7I5Ed3fnuK zdA4tnhOlPKWnUosxRmJhlrMRcWJAAMh6pwwAwAA 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 --- drivers/mmc/host/tmio_mmc.c | 2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/drivers/mmc/host/tmio_mmc.c b/drivers/mmc/host/tmio_mmc.c index 139212e..8860d4d 100644 --- a/drivers/mmc/host/tmio_mmc.c +++ b/drivers/mmc/host/tmio_mmc.c @@ -112,8 +112,6 @@ static int tmio_mmc_remove(struct platform_device *pdev) const struct mfd_cell *cell = mfd_get_cell(pdev); struct mmc_host *mmc = platform_get_drvdata(pdev); - platform_set_drvdata(pdev, NULL); - if (mmc) { struct tmio_mmc_host *host = mmc_priv(mmc); free_irq(platform_get_irq(pdev, 0), host);