From patchwork Mon May 6 06:22:51 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jingoo Han X-Patchwork-Id: 2522681 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 AC8593FC5A for ; Mon, 6 May 2013 06:22:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752254Ab3EFGWy (ORCPT ); Mon, 6 May 2013 02:22:54 -0400 Received: from mailout1.samsung.com ([203.254.224.24]:53886 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752117Ab3EFGWy (ORCPT ); Mon, 6 May 2013 02:22:54 -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 <0MMD004OZ5Q4HSQ0@mailout1.samsung.com> for linux-mmc@vger.kernel.org; Mon, 06 May 2013 15:22:53 +0900 (KST) Received: from epcpsbgm2.samsung.com ( [203.254.230.49]) by epcpsbgr2.samsung.com (EPCPMTA) with SMTP id FF.B8.19730.C3C47815; Mon, 06 May 2013 15:22:52 +0900 (KST) X-AuditID: cbfee68e-b7efa6d000004d12-57-51874c3cf5c2 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id DC.BC.01422.C3C47815; Mon, 06 May 2013 15:22:52 +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 <0MMD00EWD5Q3W1D0@mmp1.samsung.com>; Mon, 06 May 2013 15:22:52 +0900 (KST) From: Jingoo Han To: 'Chris Ball' Cc: linux-mmc@vger.kernel.org, Jingoo Han , 'Marc Kleine-Budde' , Shawn Guo Subject: [PATCH 10/22] mmc: mxs-mmc: remove unnecessary platform_set_drvdata() Date: Mon, 06 May 2013 15:22:51 +0900 Message-id: <005501ce4a22$2377cb80$6a676280$@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: Ac5KIgFmrT8ZEo7pQOi3zdArVFc3Jg== Content-language: ko X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrIIsWRmVeSWpSXmKPExsVy+t8zQ10bn/ZAg203dC22v97IZnF54SVW iyP/+xkt1i+awmLxdN0SZgdWj0NX1jJ63Lm2h82j/6+BR9+WVYwenzfJBbBGcdmkpOZklqUW 6dslcGXsX9XAXrCDreLCnWfsDYzrWLsYOTkkBEwkHp5+xgJhi0lcuLeerYuRi0NIYBmjxPZH Dxlhii5OXckEkVjEKPHuejNU1S9GibYbH8FGsQmoSXz5cpgdxBYRUJTY8v04O0gRs0Avo8TF xZ+ZQRLCAn4SCx6uAGtgEVCV+HzvM1gDr4ClxO5nR5kgbEGJH5Pvgd3ELKAlsX7ncSYIW15i 85q3zBAnKUjsOPuaEWKZnsTz3c8ZIWpEJPa9eMcIslhCYB+7xP3bi9ghlglIfJt8CGgoB1BC VmLTAag5khIHV9xgmcAoNgvJ6llIVs9CsnoWkhULGFlWMYqmFiQXFCelFxnpFSfmFpfmpesl 5+duYoREX98OxpsHrA8xJgOtn8gsJZqcD4zevJJ4Q2MzIwtTE1NjI3NLM9KElcR51VqsA4UE 0hNLUrNTUwtSi+KLSnNSiw8xMnFwSjUwMr88u23y6kcdM/5e/icq8sDtmO8K1s9MS36yBrvM M8sMXhoa62WQybDN+psOf2uQyq1fDFsT21fvZFsx62etdftk519f9mj8Lb9qXB7iMa3+/8T5 jio5OVtb5f/aPTcztiurlVg1ac6mPyfX2uzZasiqlVPr/ttQScpWUaHovLGvtXHjhvttSizF GYmGWsxFxYkAXqpUg9QCAAA= X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprHKsWRmVeSWpSXmKPExsVy+t9jAV0bn/ZAg3v3NS22v97IZnF54SVW iyP/+xkt1i+awmLxdN0SZgdWj0NX1jJ63Lm2h82j/6+BR9+WVYwenzfJBbBGNTDaZKQmpqQW KaTmJeenZOal2yp5B8c7x5uaGRjqGlpamCsp5CXmptoqufgE6Lpl5gAtV1IoS8wpBQoFJBYX K+nbYZoQGuKmawHTGKHrGxIE12NkgAYS1jFm7F/VwF6wg63iwp1n7A2M61i7GDk5JARMJC5O XckEYYtJXLi3nq2LkYtDSGARo8S7681Qzi9GibYbH8E62ATUJL58OcwOYosIKEps+X6cHaSI WaCXUeLi4s/MIAlhAT+JBQ9XgDWwCKhKfL73GayBV8BSYvezo0wQtqDEj8n3WEBsZgEtifU7 jzNB2PISm9e8ZYY4SUFix9nXjBDL9CSe737OCFEjIrHvxTvGCYwCs5CMmoVk1Cwko2YhaVnA yLKKUTS1ILmgOCk910ivODG3uDQvXS85P3cTIzi2n0nvYFzVYHGIUYCDUYmHt+BJW6AQa2JZ cWXuIUYJDmYlEV6fvUAh3pTEyqrUovz4otKc1OJDjMlAn05klhJNzgemnbySeENjEzMjSyMz CyMTc3PShJXEeQ+2WgcKCaQnlqRmp6YWpBbBbGHi4JRqYGySuq5zXDGGcwVD9O2GR2xCfE92 s91s2vLcIMts1TRtoRYxn1Ol6hZeGf9OGO/6l3lk5n279vjkeGuXM8W7JxZM9Nt6VtyvJcM/ NIJveYS4TOcCQdc9M9Z52r1l8Xlztm0ew5qwmMimgpe7D6mZnZRyfmX/3ndBZWLIlgWxZo12 Zz5Xs7vxKbEUZyQaajEXFScCAEDEz3sxAwAA 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: Shawn Guo --- drivers/mmc/host/mxs-mmc.c | 2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/drivers/mmc/host/mxs-mmc.c b/drivers/mmc/host/mxs-mmc.c index 4278a17..d38f0da 100644 --- a/drivers/mmc/host/mxs-mmc.c +++ b/drivers/mmc/host/mxs-mmc.c @@ -708,8 +708,6 @@ static int mxs_mmc_remove(struct platform_device *pdev) mmc_remove_host(mmc); - platform_set_drvdata(pdev, NULL); - if (ssp->dmach) dma_release_channel(ssp->dmach);