From patchwork Mon May 6 06:21:20 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jingoo Han X-Patchwork-Id: 2522671 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 BA441DF230 for ; Mon, 6 May 2013 06:21:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752254Ab3EFGVk (ORCPT ); Mon, 6 May 2013 02:21:40 -0400 Received: from mailout1.samsung.com ([203.254.224.24]:53637 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752117Ab3EFGVj (ORCPT ); Mon, 6 May 2013 02:21:39 -0400 Received: from epcpsbgr2.samsung.com (u142.gpu120.samsung.co.kr [203.254.230.142]) by mailout1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MMD001U75JVVX30@mailout1.samsung.com> for linux-mmc@vger.kernel.org; Mon, 06 May 2013 15:21:21 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [203.254.230.47]) by epcpsbgr2.samsung.com (EPCPMTA) with SMTP id EF.E7.19730.0EB47815; Mon, 06 May 2013 15:21:20 +0900 (KST) X-AuditID: cbfee68e-b7efa6d000004d12-78-51874be0f361 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id F5.9D.08957.0EB47815; Mon, 06 May 2013 15:21:20 +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 <0MMD00ESD5NK12X0@mmp2.samsung.com>; Mon, 06 May 2013 15:21:20 +0900 (KST) From: Jingoo Han To: 'Chris Ball' Cc: linux-mmc@vger.kernel.org, Jingoo Han , 'Anatolij Gustschin' , 'Markus Pargmann' Subject: [PATCH 09/22] mmc: mxcmmc: remove unnecessary platform_set_drvdata() Date: Mon, 06 May 2013 15:21:20 +0900 Message-id: <005401ce4a21$ecc1e7b0$c645b710$@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: Ac5KIbaxSX32yK5pQm68nxcjqx5hNQ== Content-language: ko X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrIIsWRmVeSWpSXmKPExsVy+t8zfd0H3u2BBr1bLC3W313CaLH99UY2 i8sLL7FaHPnfz2hx6nYvuwOrx7xZJ1g8Dl1Zy+jR/9fAo2/LKkaPz5vkAlijuGxSUnMyy1KL 9O0SuDL6d21jLHjHVnGz+yVzA+Md1i5GTg4JAROJJa9OMUPYYhIX7q1n62Lk4hASWMYoMb2/ jwmmaPblSSwQiemMEuuvL2SEcH4xSsy/+ZARpIpNQE3iy5fD7CC2iICixJbvx9lBipgF+hkl HpyYCzZKWMBXouX7P7DdLAKqEv9nTQaL8wpYSjxtP8MGYQtK/Jh8jwXEZhbQkli/8zgThC0v sXnNW6hbFSR2nH3NCLFMT2LO+yZ2iBoRiX0v3oFdJyFwiF1iy6eFbBDLBCS+TT4ENJQDKCEr sekA1BxJiYMrbrBMYBSbhWT1LCSrZyFZPQvJigWMLKsYRVMLkguKk9KLjPSKE3OLS/PS9ZLz czcxQqKvbwfjzQPWhxiTgdZPZJYSTc4HRm9eSbyhsZmRhamJqbGRuaUZacJK4rxqLdaBQgLp iSWp2ampBalF8UWlOanFhxiZODilGhgnJTUu6Xz7sIx3sXnzW3m7lcGp4ZaPlrbYc7Uw73g/ 8TPv2e7grBxj/SVzpl/fa/LlUKjDq2MRa46q6C/fvIR50dfpUe7vfL4ksnaeXaz9as/G9c48 5f/2bMswcWd6/5JlzjqRA4q7SiM/TOT3VknOOnPBZMn0Q5H/vVfdWtHoLX+r9q2B2fJnSizF GYmGWsxFxYkAw7WSU9QCAAA= X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprHKsWRmVeSWpSXmKPExsVy+t9jQd0H3u2BBv8Omlqsv7uE0WL7641s FpcXXmK1OPK/n9Hi1O1edgdWj3mzTrB4HLqyltGj/6+BR9+WVYwenzfJBbBGNTDaZKQmpqQW KaTmJeenZOal2yp5B8c7x5uaGRjqGlpamCsp5CXmptoqufgE6Lpl5gAtV1IoS8wpBQoFJBYX K+nbYZoQGuKmawHTGKHrGxIE12NkgAYS1jFm9O/axljwjq3iZvdL5gbGO6xdjJwcEgImErMv T2KBsMUkLtxbz9bFyMUhJDCdUWL99YWMEM4vRon5Nx8yglSxCahJfPlymB3EFhFQlNjy/Tg7 SBGzQD+jxIMTc5lAEsICvhIt3/+BrWARUJX4P2syWJxXwFLiafsZNghbUOLH5Htgq5kFtCTW 7zzOBGHLS2xe85YZ4iQFiR1nXzNCLNOTmPO+iR2iRkRi34t3jBMYBWYhGTULyahZSEbNQtKy gJFlFaNoakFyQXFSeq6hXnFibnFpXrpecn7uJkZwbD+T2sG4ssHiEKMAB6MSD2/Bk7ZAIdbE suLK3EOMEhzMSiK8PnuBQrwpiZVVqUX58UWlOanFhxiTgT6dyCwlmpwPTDt5JfGGxiZmRpZG ZhZGJubmpAkrifMeaLUOFBJITyxJzU5NLUgtgtnCxMEp1cBY9nFPlbzGoxc+DVVRh7fFhyxd eqA14sCb/bu9rU62Lv50oGGdzMq6eeeiVSfuWG+8uDGi3U48oEGfN/P2lPkOr51tXBme9MZ4 bY9X8r4kM822o5P/VKjW9e+8DxYl/HkTzXlxQ3LVpxB9l8XcE+xXyS69LSxcapRfluU44412 /d2yOd2sS04osRRnJBpqMRcVJwIAQnu8gjEDAAA= 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/mxcmmc.c | 2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/drivers/mmc/host/mxcmmc.c b/drivers/mmc/host/mxcmmc.c index d503635..786448a 100644 --- a/drivers/mmc/host/mxcmmc.c +++ b/drivers/mmc/host/mxcmmc.c @@ -1219,8 +1219,6 @@ static int mxcmci_remove(struct platform_device *pdev) struct mmc_host *mmc = platform_get_drvdata(pdev); struct mxcmci_host *host = mmc_priv(mmc); - platform_set_drvdata(pdev, NULL); - mmc_remove_host(mmc); if (host->vcc)