From patchwork Mon May 6 06:50:19 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jingoo Han X-Patchwork-Id: 2522811 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 815653FC5A for ; Mon, 6 May 2013 06:50:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752119Ab3EFGuV (ORCPT ); Mon, 6 May 2013 02:50:21 -0400 Received: from mailout4.samsung.com ([203.254.224.34]:16012 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752111Ab3EFGuV (ORCPT ); Mon, 6 May 2013 02:50:21 -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 <0MMD003R96ZKFZP0@mailout4.samsung.com> for linux-mmc@vger.kernel.org; Mon, 06 May 2013 15:50:19 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [203.254.230.50]) by epcpsbgr5.samsung.com (EPCPMTA) with SMTP id 27.0B.19350.BA257815; Mon, 06 May 2013 15:50:19 +0900 (KST) X-AuditID: cbfee691-b7fe56d000004b96-73-518752ab91e5 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 1C.26.08957.BA257815; Mon, 06 May 2013 15:50:19 +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 <0MMD00J2J6ZV57C0@mmp2.samsung.com>; Mon, 06 May 2013 15:50:19 +0900 (KST) From: Jingoo Han To: 'Chris Ball' Cc: linux-mmc@vger.kernel.org, 'Wei WANG' , 'Roger Tseng' , Jingoo Han Subject: [PATCH 14/22] mmc: rtsx_pci_sdmmc: remove unnecessary platform_set_drvdata() Date: Mon, 06 May 2013 15:50:19 +0900 Message-id: <007901ce4a25$f91ac690$eb5053b0$@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: Ac5KJfaxvVpvQR8FRnWa/hr6A7kAag== Content-language: ko X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrPIsWRmVeSWpSXmKPExsVy+t8zI93VQe2BBu/bjC22v97IZnF54SVW iyP/+xktbv+cyW6xct1pNgdWj0NX1jJ6/NjwjtHj8dvN7B59W1YxenzeJBfAGsVlk5Kak1mW WqRvl8CVMWu6UsFM9orvh80aGDvYuhg5OSQETCRm/D7KAmGLSVy4tx4sLiSwjFFiZ48vTM2E 851ANVxA8emMEu9/XmaEcH4xSsx6shusg01ATeLLl8PsILaIgKLElu/H2UGKmAX6GCUenG5i BEkIC4RLbL/6mAnEZhFQlbj/dBMriM0rYClx8ehTKFtQ4sfke2AnMQtoSazfeZwJwpaX2Lzm LTPESQoSO86+ZoRYpidxduZpqHoRiX0v3oFdJyGwj11i5aJb7BDLBCS+TT4EVMQBlJCV2HQA ao6kxMEVN1gmMIrNQrJ6FpLVs5CsnoVkxQJGllWMoqkFyQXFSelFpnrFibnFpXnpesn5uZsY IZE3cQfj/QPWhxiTgdZPZJYSTc4HRm5eSbyhsZmRhamJqbGRuaUZacJK4rzqLdaBQgLpiSWp 2ampBalF8UWlOanFhxiZODilGhjFshlz399b/qcwvlSo4SFjYNisJb+Y+N5+OT9pWXN84fVz Xh+2Vl8P/3/qkMJD64bPZ0TkJiblO4fLpmxaKZnBOa209tuq7b6mE62Cgk96tTIe4px+Zeb0 pmTOzIkvj1oHiQZK2VYdywvLzzk0hUVZZeusHh2JVeLy+Wl6addvdajxVz89sk+JpTgj0VCL uag4EQAjIS3H0gIAAA== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprLKsWRmVeSWpSXmKPExsVy+t9jQd3VQe2BBqe26ltsf72RzeLywkus Fkf+9zNa3P45k91i5brTbA6sHoeurGX0+LHhHaPH47eb2T36tqxi9Pi8SS6ANaqB0SYjNTEl tUghNS85PyUzL91WyTs43jne1MzAUNfQ0sJcSSEvMTfVVsnFJ0DXLTMHaLuSQlliTilQKCCx uFhJ3w7ThNAQN10LmMYIXd+QILgeIwM0kLCOMWPWdKWCmewV3w+bNTB2sHUxcnJICJhITDjf yQJhi0lcuLceKM7FISQwnVHi/c/LjBDOL0aJWU92g3WwCahJfPlymB3EFhFQlNjy/Tg7SBGz QB+jxIPTTYwgCWGBcIntVx8zgdgsAqoS959uYgWxeQUsJS4efQplC0r8mHwPbDWzgJbE+p3H mSBseYnNa94yQ5ykILHj7GtGiGV6EmdnnoaqF5HY9+Id4wRGgVlIRs1CMmoWklGzkLQsYGRZ xSiaWpBcUJyUnmuoV5yYW1yal66XnJ+7iREc2c+kdjCubLA4xCjAwajEw1vwpC1QiDWxrLgy 9xCjBAezkgivz16gEG9KYmVValF+fFFpTmrxIcZkoE8nMkuJJucDk05eSbyhsYmZkaWRmYWR ibk5acJK4rwHWq0DhQTSE0tSs1NTC1KLYLYwcXBKNTDKSktdam9/U76BP03mooG3Y96jJbIH BR3m1ZU9dbmSvc1I7k6Vzn37hGCuLWdelN9Raru4W17Ep2S3mnbmog95/LN2x0560nScS/Va jJO/54zVXRtCOn+1P54txrXrvjjnlcYnC+cnmH1ZmLf83pptE2NMYgOim1g5Xk7gbVx/UvPH 1SqD6mlKLMUZiYZazEXFiQDRA8ndMAMAAA== 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/rtsx_pci_sdmmc.c | 2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/drivers/mmc/host/rtsx_pci_sdmmc.c b/drivers/mmc/host/rtsx_pci_sdmmc.c index ad13f42..82a35b9 100644 --- a/drivers/mmc/host/rtsx_pci_sdmmc.c +++ b/drivers/mmc/host/rtsx_pci_sdmmc.c @@ -1316,8 +1316,6 @@ static int rtsx_pci_sdmmc_drv_remove(struct platform_device *pdev) mmc_remove_host(mmc); mmc_free_host(mmc); - platform_set_drvdata(pdev, NULL); - dev_dbg(&(pdev->dev), ": Realtek PCI-E SDMMC controller has been removed\n");