From patchwork Mon May 6 06:24:54 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jingoo Han X-Patchwork-Id: 2522691 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 ABC04DF230 for ; Mon, 6 May 2013 06:25:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752483Ab3EFGZ2 (ORCPT ); Mon, 6 May 2013 02:25:28 -0400 Received: from mailout1.samsung.com ([203.254.224.24]:54289 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752117Ab3EFGZ2 (ORCPT ); Mon, 6 May 2013 02:25:28 -0400 Received: from epcpsbgr3.samsung.com (u143.gpu120.samsung.co.kr [203.254.230.143]) by mailout1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MMD0017M5TGVX40@mailout1.samsung.com> for linux-mmc@vger.kernel.org; Mon, 06 May 2013 15:24:55 +0900 (KST) Received: from epcpsbgm2.samsung.com ( [203.254.230.50]) by epcpsbgr3.samsung.com (EPCPMTA) with SMTP id F6.58.13955.7BC47815; Mon, 06 May 2013 15:24:55 +0900 (KST) X-AuditID: cbfee68f-b7f066d000003683-2f-51874cb7dca5 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id 0F.2D.01422.7BC47815; Mon, 06 May 2013 15:24:55 +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 <0MMD00FCP5TIMF80@mmp1.samsung.com>; Mon, 06 May 2013 15:24:54 +0900 (KST) From: Jingoo Han To: 'Chris Ball' Cc: linux-mmc@vger.kernel.org, Jingoo Han , 'Jarkko Lavinen' , 'Venkatraman S' Subject: [PATCH 11/22] mmc: omap: remove unnecessary platform_set_drvdata() Date: Mon, 06 May 2013 15:24:54 +0900 Message-id: <005601ce4a22$6c740790$455c16b0$@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: Ac5KIiulq9/ckbNcRhCGyjZQipi21Q== Content-language: ko X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrPIsWRmVeSWpSXmKPExsVy+t8zI93tPu2BBpdOcltsf72RzeL9ho3M FpcXXmK1OPK/n9GiY2+eA6vHoStrGT3u3rrE5NG3ZRWjx/Eb25k8Pm+SC2CN4rJJSc3JLEst 0rdL4MpoPfCBseA+W8XxbwINjCdYuxg5OSQETCRutSxkgrDFJC7cW8/WxcjFISSwjFHiz+ET jF2MHGBFK/uVIOKLGCX2TeuCKvrFKLHt4D92kG42ATWJL18Og9kiAooSW74fZwcpYhaYyCjx f+EasBXCAt4SR+9MBrNZBFQljhx/zwJi8wpYSpy9uIARwhaU+DH5HlicWUBLYv3O40wQtrzE 5jVvmSFOVZDYcfY1I8QyPYnT22YxQtSISOx78Y4RZLGEwCF2iePvupkhlglIfJt8iAXiHVmJ TQeg5khKHFxxg2UCo9gsJKtnIVk9C8nqWUhWLGBkWcUomlqQXFCclF5krFecmFtcmpeul5yf u4kREnn9OxjvHrA+xJgMtH4is5Rocj4wcvNK4g2NzYwsTE1MjY3MLc1IE1YS51VrsQ4UEkhP LEnNTk0tSC2KLyrNSS0+xMjEwSnVwKhq/4J9ypeO2yfvtijcSmq+GMx6eps3W800izUlJ2ND mr769D7wvOC45dLchlIFz1/6Rh7MYjvvnk4+eOrmdPu7Yixfyi4taKkMvrG5fBE306Z9v6+v Z5pya8/bBdtufz7z2PbJ9AkPuQRDXB+aXu08HlDK0qidoV7F1Hc6xyI0WvDRmpQG6WAlluKM REMt5qLiRABjD5Xw0gIAAA== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprDKsWRmVeSWpSXmKPExsVy+t9jAd3tPu2BBrtOsVtsf72RzeL9ho3M FpcXXmK1OPK/n9GiY2+eA6vHoStrGT3u3rrE5NG3ZRWjx/Eb25k8Pm+SC2CNamC0yUhNTEkt UkjNS85PycxLt1XyDo53jjc1MzDUNbS0MFdSyEvMTbVVcvEJ0HXLzAFarqRQlphTChQKSCwu VtK3wzQhNMRN1wKmMULXNyQIrsfIAA0krGPMaD3wgbHgPlvF8W8CDYwnWLsYOTgkBEwkVvYr dTFyApliEhfurWfrYuTiEBJYxCixb1oXlPOLUWLbwX/sIFVsAmoSX74cBrNFBBQltnw/zg5S xCwwkVHi/8I1TCAJYQFviaN3JoPZLAKqEkeOv2cBsXkFLCXOXlzACGELSvyYfA8sziygJbF+ 53EmCFteYvOat8wQJylI7Dj7mhFimZ7E6W2zGCFqRCT2vXjHOIFRYBaSUbOQjJqFZNQsJC0L GFlWMYqmFiQXFCel5xrpFSfmFpfmpesl5+duYgTH9TPpHYyrGiwOMQpwMCrx8BY8aQsUYk0s K67MPcQowcGsJMLrsxcoxJuSWFmVWpQfX1Sak1p8iDEZ6NOJzFKiyfnAlJNXEm9obGJmZGlk ZmFkYm5OmrCSOO/BVutAIYH0xJLU7NTUgtQimC1MHJxSDYzlFzNuzc+K8QiSEOGq/jFz493r VzeG1lxZNOFhRqPFXf+GU+WbvzN4PnU15fsr8FpicffGFoP9Sxlb/69fwL8rqJj3ax1v/IoN b+SXfrqgIbz8a7ak7/bL0Ym/lIKnJsqqT2dq+/mRd2OIxF6+rC/Wxh3PD66IWlkyQyYkJOl6 1rUn7P1VfkVKLMUZiYZazEXFiQAzLawOLwMAAA== 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/omap.c | 2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/drivers/mmc/host/omap.c b/drivers/mmc/host/omap.c index 4254975..4b3e0eb 100644 --- a/drivers/mmc/host/omap.c +++ b/drivers/mmc/host/omap.c @@ -1500,8 +1500,6 @@ static int mmc_omap_remove(struct platform_device *pdev) struct mmc_omap_host *host = platform_get_drvdata(pdev); int i; - platform_set_drvdata(pdev, NULL); - BUG_ON(host == NULL); for (i = 0; i < host->nr_slots; i++)