From patchwork Mon May 6 06:16:09 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jingoo Han X-Patchwork-Id: 2522641 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 77B66DF230 for ; Mon, 6 May 2013 06:16:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752504Ab3EFGQM (ORCPT ); Mon, 6 May 2013 02:16:12 -0400 Received: from mailout3.samsung.com ([203.254.224.33]:54186 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752489Ab3EFGQM (ORCPT ); Mon, 6 May 2013 02:16:12 -0400 Received: from epcpsbgr3.samsung.com (u143.gpu120.samsung.co.kr [203.254.230.143]) by mailout3.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MMD00CAI5EMVQN0@mailout3.samsung.com> for linux-mmc@vger.kernel.org; Mon, 06 May 2013 15:16:10 +0900 (KST) Received: from epcpsbgm2.samsung.com ( [203.254.230.51]) by epcpsbgr3.samsung.com (EPCPMTA) with SMTP id C9.34.13955.AAA47815; Mon, 06 May 2013 15:16:10 +0900 (KST) X-AuditID: cbfee68f-b7f066d000003683-81-51874aaa887e Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id 01.CA.01422.AAA47815; Mon, 06 May 2013 15:16:10 +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 <0MMD00ECE5EX8YV0@mmp2.samsung.com>; Mon, 06 May 2013 15:16:09 +0900 (KST) From: Jingoo Han To: 'Chris Ball' Cc: linux-mmc@vger.kernel.org, Jingoo Han , 'Seungwon Jeon' , 'Jaehoon Chung' , 'Andy Shevchenko' Subject: [PATCH 06/22] mmc: dw_mmc: remove unnecessary platform_set_drvdata() Date: Mon, 06 May 2013 15:16:09 +0900 Message-id: <005101ce4a21$336eaaf0$9a4c00d0$@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: Ac5KIOry8rC/tnpURlm/Aq6hufkx7Q== Content-language: ko X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrPIsWRmVeSWpSXmKPExsVy+t8zY91VXu2BBrvnylr0Nk1nstj+eiOb xeWFl1gtbvxqY7U48r+f0eLD/YvMDmweh66sZfSYdzLQo2/LKkaPz5vkAliiuGxSUnMyy1KL 9O0SuDLmr/rGUnCbreLQzGamBsYLrF2MnBwSAiYSO6+uZ4KwxSQu3FvP1sXIxSEksIxR4s3N J2wwRed3XmKFSExnlNh//wMzhPOLUWJD6xKwdjYBNYkvXw6zg9giAooSW74fZwcpYhY4xyix 6NIEoFEcHMICvhLTt2aAmCwCqhIz5nOClPMKWErMvwUxhldAUOLH5HssIDazgJbE+p3HmSBs eYnNa94yQxykILHj7GtGiFV6Egs6v7JB1IhI7HvxjhFkrYTAIXaJiQ/Xgw1iERCQ+Db5EAvI XgkBWYlNB6DmSEocXHGDZQKj2Cwkq2chWT0LyepZSFYsYGRZxSiaWpBcUJyUXmSsV5yYW1ya l66XnJ+7iRESef07GO8esD7EmAy0fiKzlGhyPjBy80riDY3NjCxMTUyNjcwtzUgTVhLnVWux DhQSSE8sSc1OTS1ILYovKs1JLT7EyMTBKdXAmDU7uWV7t/6NWQ6J5tbzmDVDLNb0WG886uow iTH6zOxVjHcfxl5uD+a+3TdngdjjWK/fU43YFuoJ3uh7uC7v7LY5Mwrcjljzip0/F54utCw6 f+OSlL9c+6smiwv7/cj/O0FLtzDfI2x/eMlu/W7pqXPFJitcqjY/M+GkbPeW6waT7nSEPD9x QYmlOCPRUIu5qDgRAJ0g623SAgAA X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprDKsWRmVeSWpSXmKPExsVy+t9jQd1VXu2BBodXSVr0Nk1nstj+eiOb xeWFl1gtbvxqY7U48r+f0eLD/YvMDmweh66sZfSYdzLQo2/LKkaPz5vkAliiGhhtMlITU1KL FFLzkvNTMvPSbZW8g+Od403NDAx1DS0tzJUU8hJzU22VXHwCdN0yc4CWKymUJeaUAoUCEouL lfTtME0IDXHTtYBpjND1DQmC6zEyQAMJ6xgz5q/6xlJwm63i0MxmpgbGC6xdjJwcEgImEud3 XoKyxSQu3FvP1sXIxSEkMJ1RYv/9D8wQzi9GiQ2tS5hAqtgE1CS+fDnMDmKLCChKbPl+nB2k iFngHKPEoksTgNo5OIQFfCWmb80AMVkEVCVmzOcEKecVsJSYfwtiDK+AoMSPyfdYQGxmAS2J 9TuPM0HY8hKb17xlhjhIQWLH2deMEKv0JBZ0fmWDqBGR2PfiHeMERoFZSEbNQjJqFpJRs5C0 LGBkWcUomlqQXFCclJ5rpFecmFtcmpeul5yfu4kRHNfPpHcwrmqwOMQowMGoxMNb8KQtUIg1 say4MvcQowQHs5IIr89eoBBvSmJlVWpRfnxRaU5q8SHGZKBHJzJLiSbnA1NOXkm8obGJmZGl kZmFkYm5OWnCSuK8B1utA4UE0hNLUrNTUwtSi2C2MHFwSjUwBi+SbFrygaH44Jd8b5cUptSZ J4+I/rqb6SJ8YKbl/OO34j6tmj7D+M0jdodvR671PPD822qR9c/jezR3y5X9ue8cHz5ft3hP 6KOItanWUVF7v/7hfmXyTsDAT6PSp3hCZ59g8c+vVVFxc9a+/hivejr2gIyJXjxb6IH6cMZS btlPy68smK+5XYmlOCPRUIu5qDgRABK+/d4vAwAA 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: Seungwon Jeon --- drivers/mmc/host/dw_mmc-pltfm.c | 1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/drivers/mmc/host/dw_mmc-pltfm.c b/drivers/mmc/host/dw_mmc-pltfm.c index 41c27b7..37873f1 100644 --- a/drivers/mmc/host/dw_mmc-pltfm.c +++ b/drivers/mmc/host/dw_mmc-pltfm.c @@ -72,7 +72,6 @@ static int dw_mci_pltfm_remove(struct platform_device *pdev) { struct dw_mci *host = platform_get_drvdata(pdev); - platform_set_drvdata(pdev, NULL); dw_mci_remove(host); return 0; }