From patchwork Mon May 6 06:11:56 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jingoo Han X-Patchwork-Id: 2522621 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 8B6E53FC5A for ; Mon, 6 May 2013 06:11:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752666Ab3EFGL6 (ORCPT ); Mon, 6 May 2013 02:11:58 -0400 Received: from mailout2.samsung.com ([203.254.224.25]:12068 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752572Ab3EFGL6 (ORCPT ); Mon, 6 May 2013 02:11:58 -0400 Received: from epcpsbgr3.samsung.com (u143.gpu120.samsung.co.kr [203.254.230.143]) by mailout2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MMD008TX572MVF0@mailout2.samsung.com> for linux-mmc@vger.kernel.org; Mon, 06 May 2013 15:11:56 +0900 (KST) Received: from epcpsbgm2.samsung.com ( [203.254.230.50]) by epcpsbgr3.samsung.com (EPCPMTA) with SMTP id 79.72.13955.CA947815; Mon, 06 May 2013 15:11:56 +0900 (KST) X-AuditID: cbfee68f-b7f066d000003683-51-518749ac3f4a Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id AC.99.01422.CA947815; Mon, 06 May 2013 15:11:56 +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 <0MMD00EYU57W12T0@mmp2.samsung.com>; Mon, 06 May 2013 15:11:56 +0900 (KST) From: Jingoo Han To: 'Chris Ball' Cc: linux-mmc@vger.kernel.org, Jingoo Han , 'Sonic Zhang' Subject: [PATCH 04/22] mmc: bfin_sdh: remove unnecessary platform_set_drvdata() Date: Mon, 06 May 2013 15:11:56 +0900 Message-id: <004f01ce4a20$9c599ad0$d50cd070$@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: Ac5KIHauY1/kyrMQTFKBadz7tw/5yg== Content-language: ko X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrKIsWRmVeSWpSXmKPExsVy+t8zI901nu2BBlO79Cy2v97IZnF54SVW iyP/+xkt7mxtZnNg8Xh11dHj0JW1jB59W1YxenzeJBfAEsVlk5Kak1mWWqRvl8CV8Xn3S9aC G2wVD1bvY2pgPMraxcjJISFgIrF52nVmCFtM4sK99WxdjFwcQgLLGCXWbpnNDlN0+sAidojE dEaJl3uWskI4vxglNm5+AtbOJqAm8eXLYbAOEQFFiS3fj4PZzAKZEj9fvmMCsYUF/CWWbZnI 2MXIwcEioCrxfBUHSJhXwFJi2u8+JghbUOLH5HssEK1aEut3HmeCsOUlNq95C3WpgsSOs68Z IVbpSdzacQGqXkRi34t3jCC3SQisY5c4NWMGWIJFQEDi2+RDLCB7JQRkJTYdgJojKXFwxQ2W CYxis5CsnoVk9Swkq2chWbGAkWUVo2hqQXJBcVJ6kbFecWJucWleul5yfu4mRkiU9e9gvHvA +hBjMtD6icxSosn5wCjNK4k3NDYzsjA1MTU2Mrc0I01YSZxXrcU6UEggPbEkNTs1tSC1KL6o NCe1+BAjEwenVAPjxGv1xk8c/sdP9vrBb8id/Htmz7lIo+cR4q+eP+Vyut+/8dbNBWwZu9L2 hUcynAnw3XdbhO15a/en1TfFF3YUL75a5+bLOOP12dfMyxT3hZdyrFxdPW33d4knp6QOJPRp pRdZVE8x3ncsr71yus4ujZ4TebGzWhpOek25fItd4Gn5/PUrumP7lViKMxINtZiLihMB6+ck ncgCAAA= X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprEKsWRmVeSWpSXmKPExsVy+t9jQd01nu2BBtePallsf72RzeLywkus Fkf+9zNa3NnazObA4vHqqqPHoStrGT36tqxi9Pi8SS6AJaqB0SYjNTEltUghNS85PyUzL91W yTs43jne1MzAUNfQ0sJcSSEvMTfVVsnFJ0DXLTMHaKWSQlliTilQKCCxuFhJ3w7ThNAQN10L mMYIXd+QILgeIwM0kLCOMePz7pesBTfYKh6s3sfUwHiUtYuRk0NCwETi9IFF7BC2mMSFe+vZ uhi5OIQEpjNKvNyzlBXC+cUosXHzE2aQKjYBNYkvXw6DdYgIKEps+X4czGYWyJT4+fIdE4gt LOAvsWzLRMYuRg4OFgFVieerOEDCvAKWEtN+9zFB2IISPybfY4Fo1ZJYv/M4E4QtL7F5zVtm iIMUJHacfc0IsUpP4taOC1D1IhL7XrxjnMAoMAvJqFlIRs1CMmoWkpYFjCyrGEVTC5ILipPS c430ihNzi0vz0vWS83M3MYJj+Jn0DsZVDRaHGAU4GJV4eAuetAUKsSaWFVfmHmKU4GBWEuH1 2QsU4k1JrKxKLcqPLyrNSS0+xJgM9OhEZinR5HxgeskriTc0NjEzsjQyszAyMTcnTVhJnPdg q3WgkEB6YklqdmpqQWoRzBYmDk6pBsbiqK71ETEMNpoKE85yl8u4fL4Xc2v7FrVgc9ZrQWk5 FU/OB6245nV684aPmtbKlcLmv4MVTxxjn2n1jV1vnfqNxn88FxR10+sP2We1dRvvVItl6J97 7cnxajv3SQKRYt4atf7ZVxmq/hys5F46s/zw9WZ22WmTLm9hX7P9t8W/i7eCedpUUpVYijMS DbWYi4oTAXxjV+0lAwAA 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: Sonic Zhang --- drivers/mmc/host/bfin_sdh.c | 2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/drivers/mmc/host/bfin_sdh.c b/drivers/mmc/host/bfin_sdh.c index fb4348c..94fae2f 100644 --- a/drivers/mmc/host/bfin_sdh.c +++ b/drivers/mmc/host/bfin_sdh.c @@ -621,8 +621,6 @@ static int sdh_remove(struct platform_device *pdev) { struct mmc_host *mmc = platform_get_drvdata(pdev); - platform_set_drvdata(pdev, NULL); - if (mmc) { struct sdh_host *host = mmc_priv(mmc);